diff options
author | ru <ru@FreeBSD.org> | 2004-10-18 21:42:15 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-10-18 21:42:15 +0000 |
commit | c5d8886d0401b49a61c74f9f6ea178f0e9a80a7b (patch) | |
tree | bcefb1ec72a0c079c428719a6701d08119e08881 /usr.sbin/ypserv | |
parent | 102ee8c33453222d3a0bc0269b7ef754f45913ee (diff) | |
download | FreeBSD-src-c5d8886d0401b49a61c74f9f6ea178f0e9a80a7b.zip FreeBSD-src-c5d8886d0401b49a61c74f9f6ea178f0e9a80a7b.tar.gz |
Utilize FILES, SCRIPTS, and SYMLINKS. While here, fixed a bug in
the implementation of the following feature in revision 1.4:
- Install Makefile.yp as /var/yp/Makefile.dist and link it to
/var/yp/Makefile only if /var/yp/Makefile doesn't already exist.
Suggested by Peter Wemm.
The actual code was only symlinking when no /var/yp/Makefile.dist
existed, i.e., never.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r-- | usr.sbin/ypserv/Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile index db21523..c1b2df3 100644 --- a/usr.sbin/ypserv/Makefile +++ b/usr.sbin/ypserv/Makefile @@ -30,14 +30,13 @@ ypxfr_clnt.c: yp.x yp.h: yp.x ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/yp.x -afterinstall: - ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${.CURDIR}/Makefile.yp \ - ${DESTDIR}/var/yp/Makefile.dist - ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \ - ${.CURDIR}/ypinit.sh ${DESTDIR}${BINDIR}/ypinit - @if [ ! -f ${DESTDIR}/var/yp/Makefile.dist ]; then \ - ln -s ${DESTDIR}/var/yp/Makefile.dist \ - ${DESTDIR}/var/yp/Makefile; fi +FILES= Makefile.yp +FILESNAME= Makefile.dist +FILESDIR= /var/yp +SCRIPTS= ypinit.sh + +.if !exists(${DESTDIR}${FILESDIR}/Makefile) +SYMLINKS= ${FILESNAME} ${FILESDIR}/Makefile +.endif .include <bsd.prog.mk> |