diff options
author | lioux <lioux@FreeBSD.org> | 2001-08-03 18:05:51 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-08-03 18:05:51 +0000 |
commit | b6ca4daabcb3e0d48de989e7f10bb797a0279dea (patch) | |
tree | 396753958fc0a2337e1a0ff79385d93b92f2f068 /comms/yawmppp | |
parent | 4a60fb9fa6a3f3a8a47e968a821b9cb8f981afa2 (diff) | |
download | FreeBSD-ports-b6ca4daabcb3e0d48de989e7f10bb797a0279dea.zip FreeBSD-ports-b6ca4daabcb3e0d48de989e7f10bb797a0279dea.tar.gz |
o Switch over maintainership to submitter
o Move pre-configure patching to pre-patch where it semantically
belongs
o Additional patching and documentation installation
o Support NOPORTDOCS
Submitted by: Patrick Li <pat@databits.net>
Diffstat (limited to 'comms/yawmppp')
-rw-r--r-- | comms/yawmppp/Makefile | 27 | ||||
-rw-r--r-- | comms/yawmppp/pkg-plist | 15 |
2 files changed, 25 insertions, 17 deletions
diff --git a/comms/yawmppp/Makefile b/comms/yawmppp/Makefile index 69fbb90..0fa2a99 100644 --- a/comms/yawmppp/Makefile +++ b/comms/yawmppp/Makefile @@ -11,7 +11,7 @@ CATEGORIES= comms windowmaker MASTER_SITES= ftp://ftp.seul.org/pub/yawmppp/ \ http://www.dcc.unicamp.br/~guazzibe/yawmppp/arch/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= pat@databits.net USE_X_PREFIX= yes USE_GMAKE= yes @@ -21,19 +21,30 @@ USE_XPM= yes CONFIGURE_ENV= GTKCONFIG="${GTK_CONFIG}" CFLAGS="${CFLAGS} -I${X11BASE}/include" CONFIGURE_ARGS= --x-includes="${X11BASE}/include" \ --x-libraries="${X11BASE}/lib" -PLIST_SUB+= PORTVERSION="${PORTVERSION}" MAN1= yawmppp.1x -pre-configure: - ${PERL} -pi -e "s@-g -O2@${CFLAGS}@g; s@-O2 -Wall@${CFLAGS} -Wall@g; \ +pre-patch: + @${PERL} -pi -e "s@-g -O2@${CFLAGS}@g; s@-O2 -Wall@${CFLAGS} -Wall@g; \ s@-O2@${CFLAGS}@g" ${WRKSRC}/*/Makefile.in \ ${WRKSRC}/configure ${WRKSRC}/*/*/Makefile.in - -pre-patch: - @${PERL} -pi -e "s|\@prefix\@/doc/|\@prefix\@/share/doc/|g" \ - ${WRKSRC}/Makefile.in @${PERL} -pi -e 's!\/usr\/local!${PREFIX}!; \ s!/usr/bin!${PREFIX}/bin!' ${WRKSRC}/src/ycommon.c + @${PERL} -pi.orig -e 's|/etc/ppp/yagetmodemspeed|${PREFIX}/bin/yagetmodemspeed|' \ + ${WRKSRC}/src/gtksetup/applet.c + @${PERL} -pi.orig -e 's|tac|cat|' ${WRKSRC}/src/dockapp/getmodemspeed.c + +do-install: +.for file in dockapp/yagetmodemspeed dockapp/${PORTNAME} gtklog/${PORTNAME}.log \ + ${PORTNAME}.pref ${PORTNAME}.thin + @${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + @${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.1x ${PREFIX}/man/man1 +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in CHANGELOG FAQ README TODO + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif .include <bsd.port.mk> diff --git a/comms/yawmppp/pkg-plist b/comms/yawmppp/pkg-plist index 2221e25..1c4de06 100644 --- a/comms/yawmppp/pkg-plist +++ b/comms/yawmppp/pkg-plist @@ -1,13 +1,10 @@ +bin/yagetmodemspeed bin/yawmppp bin/yawmppp.log bin/yawmppp.pref bin/yawmppp.thin -share/doc/yawmppp-%%PORTVERSION%%/CHANGELOG -share/doc/yawmppp-%%PORTVERSION%%/COPYING -share/doc/yawmppp-%%PORTVERSION%%/FAQ -share/doc/yawmppp-%%PORTVERSION%%/INSTALL -share/doc/yawmppp-%%PORTVERSION%%/README -share/icons/pppdoc.xpm -share/icons/stepphone.xpm -@dirrm share/doc/yawmppp-%%PORTVERSION%% -@dirrm share/icons +%%PORTDOCS%%share/doc/yawmppp/CHANGELOG +%%PORTDOCS%%share/doc/yawmppp/FAQ +%%PORTDOCS%%share/doc/yawmppp/README +%%PORTDOCS%%share/doc/yawmppp/TODO +%%PORTDOCS%%@dirrm share/doc/yawmppp |