# these defaults are for debian. porters should probably adjust them
# before calling make install
ETCPREFIX ?=
+ETCSUFFIX ?=
PREFIX ?= /usr
MANPREFIX ?= $(PREFIX)/share/man
install src/monkeysphere-server $(DESTDIR)$(PREFIX)/sbin
install -m 0644 src/common $(DESTDIR)$(PREFIX)/share/monkeysphere
install doc/* $(DESTDIR)$(PREFIX)/share/doc/monkeysphere
- install -m 0644 etc/* $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere
+ install -m 0644 etc/monkeysphere.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere$(ETCSUFFIX)
+ install -m 0644 etc/monkeysphere-server.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere-server.conf$(ETCSUFFIX)
installman:
mkdir -p $(DESTDIR)$(MANPREFIX)/man1 $(DESTDIR)$(MANPREFIX)/man7 $(DESTDIR)$(MANPREFIX)/man8
MAN8= monkeysphere-server.8
MANCOMPRESSED= yes
-MAKE_ARGS= ETCPREFIX=/usr/local MANPREFIX=/usr/local/man
+MAKE_ARGS= ETCPREFIX=/usr/local MANPREFIX=/usr/local/man ETCSUFFIX=.sample
.include <bsd.port.mk>
or just look around the ports tree for pkg-install files, they are
usually for adding users.
-There is also the usual crappy work involved with installing a .defaults
-file instead of straight files in /usr/local/etc:
-
-http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html
-
Finally the pkg-plist needs to be checked. The package hasn't been
installed at all once yet, it only patches and builds.
-MD5 (monkeysphere_0.16~pre.orig.tar.gz) = cc02c34932b781bb2436f54d99fde2cc
-SHA256 (monkeysphere_0.16~pre.orig.tar.gz) = b54f66a2aed82864d22348800752e3881633af0aa4692beb367c88c8a4c4bc31
-SIZE (monkeysphere_0.16~pre.orig.tar.gz) = 58172
+MD5 (monkeysphere_0.16~pre.orig.tar.gz) = f96364b5938373787297e532270c1d27
+SHA256 (monkeysphere_0.16~pre.orig.tar.gz) = 4a1db42b4e0f6b05bf747a4e3aeeb88971c00deff752f58410e1ff646bcf350e
+SIZE (monkeysphere_0.16~pre.orig.tar.gz) = 58191
bin/monkeysphere-ssh-proxycommand
bin/monkeysphere
share/monkeysphere/common
-etc/monkeysphere/monkeysphere-server.conf
-etc/monkeysphere/monkeysphere.conf
+@unexec if cmp -s %D/etc/monkeysphere/monkeysphere.conf.sample %D/etc/monkeysphere/monkeysphere.conf; then rm -f %D/etc/monkeysphere/monkeysphere.conf; fi
+etc/monkeysphere/monkeysphere.conf.sample
+@exec if [ ! -f %D/etc/monkeysphere/monkeysphere.conf ] ; then cp -p %D/%F %B/monkeysphere.conf; fi
+@unexec if cmp -s %D/etc/monkeysphere/monkeysphere-server.conf.sample %D/etc/monkeysphere/monkeysphere-server.conf; then rm -f %D/etc/monkeysphere/monkeysphere-server.conf; fi
+etc/monkeysphere/monkeysphere-server.conf.sample
+@exec if [ ! -f %D/etc/monkeysphere/monkeysphere-server.conf ] ; then cp -p %D/%F %B/monkeysphere-server.conf; fi
@dirrm share/doc/monkeysphere
@dirrm share/monkeysphere
@dirrm etc/monkeysphere