From 903014f4322e596a87a44d9a329ccffe10711c21 Mon Sep 17 00:00:00 2001 From: brad Date: Wed, 31 Mar 1999 22:24:39 +0000 Subject: [PATCH] fix for package building --- net/wget/Makefile | 19 +++++++++++++++++-- net/wget/pkg/PLIST | 9 +++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/net/wget/Makefile b/net/wget/Makefile index 2e0a423440f..93de29aeb0a 100644 --- a/net/wget/Makefile +++ b/net/wget/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 1999/03/31 21:46:19 brad Exp $ +# $OpenBSD: Makefile,v 1.6 1999/03/31 22:24:39 brad Exp $ DISTNAME= wget-1.5.3 CATEGORIES= net @@ -10,6 +10,8 @@ MAINTAINER= angelos@openbsd.org LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I/usr/local/include" \ + LDFLAGS="-L/usr/local/lib" pre-configure: ${RM} ${WRKSRC}/doc/wget.info* @@ -18,6 +20,19 @@ post-install: if [ ! -f ${PREFIX}/info/dir ]; then \ sed -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ fi - -install-info ${PREFIX}/info/wget.info ${PREFIX}/info/dir + @install-info ${PREFIX}/info/wget.info ${PREFIX}/info/dir + @${MKDIR} ${PREFIX}/lib/wget + @${INSTALL_DATA} ${WRKSRC}/doc/sample.wgetrc ${PREFIX}/lib/wget/wgetrc.sample + @${ECHO} "" + @${ECHO} "*** The latest version of the wgetrc file" + @${ECHO} "*** can be found ${PREFIX}/lib/wget" + @if [ -f /etc/wgetrc ]; then \ + ${ECHO} "*** Your /etc/wgetrc has NOT been changed"; \ + else \ + cp ${PREFIX}/lib/wget/wgetrc.sample /etc; \ + ${ECHO} "*** wgetrc has been copied into /etc"; \ + fi + @${ECHO} "" + .include diff --git a/net/wget/pkg/PLIST b/net/wget/pkg/PLIST index d6832c6fd10..05491156987 100644 --- a/net/wget/pkg/PLIST +++ b/net/wget/pkg/PLIST @@ -1,5 +1,14 @@ bin/wget @unexec install-info --delete %D/info/wget.info %D/info/dir info/wget.info +lib/wget/wgetrc.sample +@exec if [ ! -f /etc/wgetrc ]; then cp %D/%F /etc/wgetrc; fi +share/locale/cs/LC_MESSAGES/wget.mo +share/locale/de/LC_MESSAGES/wget.mo +share/locale/hr/LC_MESSAGES/wget.mo +share/locale/it/LC_MESSAGES/wget.mo +share/locale/no/LC_MESSAGES/wget.mo +share/locale/pt_BR/LC_MESSAGES/wget.mo @exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir @exec install-info %D/info/wget.info %D/info/dir +@dirrm lib/wget