fix for package building

This commit is contained in:
brad 1999-03-31 22:24:39 +00:00
parent 5e6352b302
commit 903014f432
2 changed files with 26 additions and 2 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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