diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-08-03 18:05:51 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-08-03 18:05:51 +0000 |
commit | 7683883b1a39460f9c72a58109e127da04376302 (patch) | |
tree | 1d0d29a81cea16fe1b1f0f61db29b47e6ccef922 /comms/yawmppp | |
parent | Update to version 1.4.4 (diff) |
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>
Notes
Notes:
svn path=/head/; revision=45777
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 69fbb90954ab..0fa2a9968737 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 2221e25f01bc..1c4de067cbe1 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 |