[sheepdog] [PATCH v2 2/3] symlink dog to collie for compatibility
Liu Yuan
namei.unix at gmail.com
Mon Aug 12 12:53:50 CEST 2013
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
debian/sheepdog.postinst | 2 ++
dog/Makefile.am | 3 +++
sheepdog.spec.in | 1 +
3 files changed, 6 insertions(+)
diff --git a/debian/sheepdog.postinst b/debian/sheepdog.postinst
index bc72f06..c0d3c0f 100644
--- a/debian/sheepdog.postinst
+++ b/debian/sheepdog.postinst
@@ -24,6 +24,8 @@ if [ "$1" = "configure" ] ; then
db_stop || true
fi
+ln -s -f /usr/sbin/dog /usr/sbin/collie
+
#DEBHELPER#
exit 0
diff --git a/dog/Makefile.am b/dog/Makefile.am
index fc826d9..c267894 100644
--- a/dog/Makefile.am
+++ b/dog/Makefile.am
@@ -39,6 +39,9 @@ noinst_HEADERS = treeview.h dog.h farm/farm.h
EXTRA_DIST =
+install-exec-hook:
+ if [ -z "${DESTDIR}" ];then $(LN_S) -f ${sbindir}/dog ${sbindir}/collie;fi
+
all-local:
@echo Built dog
diff --git a/sheepdog.spec.in b/sheepdog.spec.in
index b6ec4e6..cf29e01 100644
--- a/sheepdog.spec.in
+++ b/sheepdog.spec.in
@@ -46,6 +46,7 @@ rm -rf %{buildroot}
%post
/sbin/chkconfig --add sheepdog
+ln -s -f %{_sbindir}/dog %{_sbindir}/collie
%preun
if [ $1 -eq 0 ] ; then
--
1.7.9.5
More information about the sheepdog
mailing list