diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-03-26 21:26:25 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-03-26 21:26:25 +0000 |
commit | 428ebe872b1f67a2dd2ad0cfe80d92552f0be149 (patch) | |
tree | a7138fa1b62fbdb129309a495e47cf331f162bdd /net | |
parent | 0c49eb9ef0f116ece9b32dc39d5577be28eaa155 (diff) | |
download | pkgsrc-428ebe872b1f67a2dd2ad0cfe80d92552f0be149.tar.gz |
Makefile cleanup:
* run ${SED} once passing two commands instead of running it twice
* don't copy $$i to $$i.bak, use $$i.done files instead
Diffstat (limited to 'net')
-rw-r--r-- | net/userppp/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/userppp/Makefile b/net/userppp/Makefile index 9c51eb06e78..edbbdf4fa6c 100644 --- a/net/userppp/Makefile +++ b/net/userppp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2001/02/17 18:19:52 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2001/03/26 21:26:25 zuntum Exp $ DISTNAME= ppp-001107.src PKGNAME= userppp-001107 @@ -15,15 +15,15 @@ MANCOMPRESSED_IF_MANZ= YES WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//} post-patch: - (cd ${WRKSRC}; \ - for i in ppp/ppp.8 pppctl/pppctl.8; do \ - ${CP} $$i $$i.bak; \ - ${SED} s@/etc/ppp@${PREFIX}/etc/ppp@ < $$i.bak | \ - ${SED} s@/usr/share@${PREFIX}/share@ > $$i; \ - done) + (cd ${WRKSRC}; \ + for i in ppp/ppp.8 pppctl/pppctl.8; do \ + ${SED} -e "s,/etc/ppp,${PREFIX}/etc/ppp," \ + -e "s,/usr/share,${PREFIX}/share," \ + $$i > $$i.done; ${MV} $$i.done $$i; \ + done) pre-install: - ${GREP} "^network:" /etc/group >/dev/null || \ - /usr/sbin/groupadd -g 40 network + ${GREP} "^network:" /etc/group >/dev/null || \ + /usr/sbin/groupadd -g 40 network .include "../../mk/bsd.pkg.mk" |