From b6ca4daabcb3e0d48de989e7f10bb797a0279dea Mon Sep 17 00:00:00 2001 From: lioux Date: Fri, 3 Aug 2001 18:05:51 +0000 Subject: 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 --- comms/yawmppp/Makefile | 27 +++++++++++++++++++-------- comms/yawmppp/pkg-plist | 15 ++++++--------- 2 files changed, 25 insertions(+), 17 deletions(-) (limited to 'comms') 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 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 -- cgit v1.1