]> www.infradead.org Git - users/dhowells/kafs-client.git/commitdiff
Differentiate kafs stuff by name
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Mar 2018 11:39:38 +0000 (11:39 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 1 Mar 2018 11:43:57 +0000 (11:43 +0000)
Differentiate kafs and kafs toolage from other AFS tools by name so that
they can be installed and used in parallel.  To this end, use /kafs instead
of /afs as the mountpoint and rename aklog to aklog-kafs.

Signed-off-by: David Howells <dhowells@redhat.com>
.gitignore [new file with mode: 0644]
Makefile
aklog-kafs.1 [moved from aklog.1 with 100% similarity]
aklog-kafs.c [moved from aklog.c with 100% similarity]
kafs.mount [moved from afs.mount with 55% similarity]
redhat/kafs-client.spec

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..34b3993
--- /dev/null
@@ -0,0 +1 @@
+aklog-kafs
index 15c08aaa724a9f29c565a1afc852ca1c44de5830..c94ae46d1f16466d2f529c814eee889456a4c967 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,9 +37,9 @@ endif
 # Build stuff
 #
 ###############################################################################
-all: aklog
+all: aklog-kafs
 
-aklog: aklog.c Makefile
+aklog-kafs: aklog-kafs.c Makefile
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lkrb5 -lcrypto -lkeyutils
 
 ###############################################################################
@@ -50,9 +50,9 @@ aklog: aklog.c Makefile
 MAN1   := $(MANDIR)/man1
 
 install: all
-       $(INSTALL) -D -m 0755 aklog $(DESTDIR)$(BINDIR)/aklog
-       $(INSTALL) -D -m 0644 aklog.1 $(DESTDIR)$(MAN1)/aklog.1
-       mkdir -m755 $(DESTDIR)/afs
+       $(INSTALL) -D -m 0755 aklog-kafs $(DESTDIR)$(BINDIR)/aklog-kafs
+       $(INSTALL) -D -m 0644 aklog-kafs.1 $(DESTDIR)$(MAN1)/aklog-kafs.1
+       mkdir -m755 $(DESTDIR)/kafs
 
 ###############################################################################
 #
@@ -60,7 +60,7 @@ install: all
 #
 ###############################################################################
 clean:
-       $(RM) aklog
+       $(RM) aklog-kafs
        $(RM) *.o *~
        $(RM) debugfiles.list debugsources.list
 
similarity index 100%
rename from aklog.1
rename to aklog-kafs.1
similarity index 100%
rename from aklog.c
rename to aklog-kafs.c
similarity index 55%
rename from afs.mount
rename to kafs.mount
index 207f3a79a1c174c45a690ce05147fcb59778be28..a9c8e8433712d4cd052683c24b384bdbcfb85a86 100644 (file)
--- a/afs.mount
@@ -1,10 +1,10 @@
 [Unit]
-Description=AFS Dynamic Root mount
-ConditionPathExists=/afs
+Description=kAFS Dynamic Root mount
+ConditionPathExists=/kafs
 
 [Mount]
 What=none
-Where=/afs
+Where=/kafs
 Type=afs
 Options=_netdev,dyn
 
index d5655529cd1d5699b07dfd668ab1f92f5c63408e..ac7815e59dc7bd0a8c07fac37c463c35e1715bc6 100644 (file)
@@ -3,7 +3,7 @@
 Name:          kafs-client
 Version:       0.1
 Release:       1%{?dist}%{?buildid}
-Summary:       kAFS basic tools and /afs dynamic root
+Summary:       kAFS basic tools and /kafs dynamic root
 License:       GPLv2+
 URL:           https://www.infradead.org/~dhowells/kafs/
 Source0:       https://www.infradead.org/~dhowells/kafs/kafs-client-%{version}.tar.bz2
@@ -25,7 +25,7 @@ Requires: selinux-policy-base >= 3.7.19-5
 
 %description
 Provide basic AFS-compatible tools for kAFS and mount the dynamic root
-on /afs.
+on /kafs.
 
 %global docdir %{_docdir}/kafs-client
 
@@ -50,20 +50,20 @@ make DESTDIR=%{buildroot} install \
        MANDIR=%{_mandir} \
        CFLAGS="-Wall $RPM_OPT_FLAGS -Werror"
 
-install -m 644 afs.mount %{buildroot}%{_unitdir}/afs.mount
+install -m 644 kafs.mount %{buildroot}%{_unitdir}/kafs.mount
 
 %post
-%systemd_post afs.mount
+%systemd_post kafs.mount
 
 %preun
-%systemd_preun afs.mount
+%systemd_preun kafs.mount
 
 %postun
-%systemd_postun_with_restart afs.mount
+%systemd_postun_with_restart kafs.mount
 
 %files
 %doc README
-/afs
+/kafs
 %{_bindir}/*
 %{_unitdir}/*
 %{_mandir}/*/*