From c15d936b34314bdde70c91242a24aac3117da653 Mon Sep 17 00:00:00 2001 From: johans Date: Mon, 22 Dec 2014 10:43:26 +0000 Subject: Fix path in makefile.in rather than moving in post-install target Avoid installing unneeded files in STAGEDIR Suggested by: ohauer --- www/lynx-current/Makefile | 6 +++--- www/lynx-current/pkg-plist | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'www/lynx-current') diff --git a/www/lynx-current/Makefile b/www/lynx-current/Makefile index a593aac3e476..0e4db3872eb0 100644 --- a/www/lynx-current/Makefile +++ b/www/lynx-current/Makefile @@ -54,8 +54,8 @@ NLS_CONFIGURE_ENABLE= nls IDN_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn IDN_CONFIGURE_ENABLE= idna -post-install: - cd ${STAGEDIR}${PREFIX}/etc/; mv lynx.cfg.default lynx.cfg.sample; \ - mv lynx.lss.default lynx.lss.sample +post-patch: + ${REINPLACE_CMD} -Ee 's/lynx\.(cfg|lss)\.default/lynx.\1.sample/g' \ + -e '/SYSCONFDIR)\/lynx\.(cfg|lss)$$/d' ${WRKSRC}/makefile.in .include diff --git a/www/lynx-current/pkg-plist b/www/lynx-current/pkg-plist index d26b2b7e0ef8..5de157af386a 100644 --- a/www/lynx-current/pkg-plist +++ b/www/lynx-current/pkg-plist @@ -2,7 +2,6 @@ bin/lynx man/man1/lynx.1.gz @sample etc/lynx.cfg.sample @sample etc/lynx.lss.sample -@exec mkdir -p %D/share/lynx_help %%PORTDOCS%%%%DOCSDIR%%/CHANGES %%PORTDOCS%%%%DOCSDIR%%/COPYHEADER %%PORTDOCS%%%%DOCSDIR%%/COPYHEADER.asc -- cgit