From 2bc1d44d1cae5f1216670c5bdedfeabacc1fb56e Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 12 Sep 2014 22:43:50 +0000 Subject: Do not violate stagedir (and allow staging as a regular user) --- net/beacon/Makefile | 4 ---- net/beacon/files/patch-src__Makefile.in | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 net/beacon/files/patch-src__Makefile.in (limited to 'net/beacon') diff --git a/net/beacon/Makefile b/net/beacon/Makefile index 069c09f93b3e..4d2997dc7d76 100644 --- a/net/beacon/Makefile +++ b/net/beacon/Makefile @@ -30,12 +30,8 @@ IPV6_DESC= Enable IPv6 PTR lookups IPV6_CONFIGURE_ENABLE= ipv6 IPV6_BUILD_DEPENDS= p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6 -.include - post-install: ${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Net/Multicast/Beacon/Beacon.so - cd ${WRKSRC}/src/FreeBSD/ && \ - ${INSTALL_DATA} beacon ${STAGEDIR}${PREFIX}/etc/rc.d ${RM} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal* @${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} diff --git a/net/beacon/files/patch-src__Makefile.in b/net/beacon/files/patch-src__Makefile.in new file mode 100644 index 000000000000..7e03d6c26bcd --- /dev/null +++ b/net/beacon/files/patch-src__Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig 2011-02-05 03:32:41 UTC ++++ src/Makefile.in +@@ -397,7 +397,7 @@ + @if test -f $(DESTDIR)$(sysconfdir)/beacon.conf; then :; else \ + $(INSTALL_DATA) -v beacon.conf $(DESTDIR)$(sysconfdir); \ + fi +-@HAVE_FREEBSD_TRUE@ @$(INSTALL_SCRIPT) -v FreeBSD/beacon $(prefix)/etc/rc.d ++@HAVE_FREEBSD_TRUE@ @$(INSTALL_SCRIPT) -v FreeBSD/beacon $(DESTDIR)$(prefix)/etc/rc.d + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. -- cgit v1.2.3