Date: Wed, 30 Jul 2014 20:59:57 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r363516 - head/sysutils/LPRngTool Message-ID: <201407302059.s6UKxv0C034760@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Wed Jul 30 20:59:56 2014 New Revision: 363516 URL: http://svnweb.freebsd.org/changeset/ports/363516 QAT: https://qat.redports.org/buildarchive/r363516/ Log: Stage sysutils/LPRngTool PR: 187976 Submitted by: Ports Fury Deleted: head/sysutils/LPRngTool/pkg-install Modified: head/sysutils/LPRngTool/Makefile head/sysutils/LPRngTool/pkg-descr head/sysutils/LPRngTool/pkg-plist Modified: head/sysutils/LPRngTool/Makefile ============================================================================== --- head/sysutils/LPRngTool/Makefile Wed Jul 30 20:54:21 2014 (r363515) +++ head/sysutils/LPRngTool/Makefile Wed Jul 30 20:59:56 2014 (r363516) @@ -3,60 +3,30 @@ PORTNAME= LPRngTool PORTVERSION= 1.3.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= sysutils print -MASTER_SITES= ftp://ftp.lprng.com/pub/%SUBDIR%/ \ - ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \ - ftp://ftp.cs.umn.edu/pub/%SUBDIR%/ \ - ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/%SUBDIR%/ \ - ftp://ftp.uni-paderborn.de/pub/unix/printer/%SUBDIR%/ -MASTER_SITE_SUBDIR= LPRng/LPRngTool +MASTER_SITES= SF/lprng/lprngtool/LRPngTool-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Configuration Tool for LPRng -BUILD_DEPENDS= a2ps:${PORTSDIR}/print/a2ps \ - wish:${PORTSDIR}/x11-toolkits/tk-wrapper +LICENSE= GPLv2 -#RUN_DEPENDS= ifhp:${PORTSDIR}/print/ifhp +BUILD_DEPENDS= a2ps:${PORTSDIR}/print/a2ps \ + mpage:${PORTSDIR}/print/mpage +USES= tar:tgz tk USE_GHOSTSCRIPT_BUILD= yes -USES= tk tar:tgz - -.if defined(SYSCONFDIR) -PLIST_SUB+= CWD="" SYSCONFDIR="${SYSCONFDIR:S,^/,,}" -.else -SYSCONFDIR= ${PREFIX}/etc -PLIST_SUB+= CWD="@comment " SYSCONFDIR="${SYSCONFDIR:S,^${PREFIX}/,,}" -.endif - GNU_CONFIGURE= yes +CONFIGURE_ENV= ac_cv_path_WISH=${WISH} +CONFIGURE_ARGS= --with-spool_directory=/var/spool/lpd USE_LDCONFIG= yes -CONFIGURE_ARGS+= --with-spool_directory=/var/spool/lpd \ - --with-sysconfdir="${SYSCONFDIR}" - -MAN1= lprngtool.1 - -NO_STAGE= yes -pre-everything:: - @${ECHO_MSG} "If you want to replace the default printing system with LPRng, use:" - @${ECHO_MSG} " make PREFIX=/usr SYSCONFDIR=/etc clean all install" - @if [ "${PREFIX}" = "/usr" -a ! -d /usr/man ] ; then \ - ${ECHO_MSG} "The man pages will be installed in /usr/man." ; \ - ${ECHO_MSG} "You should make a symbolic link /usr/share/man from /usr/man"; \ - ${ECHO_MSG} " ln -s /usr/share/man /usr/man"; \ - ${ECHO_MSG} "If you do not, you will retain the old FreeBSD man pages."; \ - ${ECHO_MSG} "See the hier(7) man page for details of the FreeBSD file system"; \ - ${ECHO_MSG} "layout. Configure is not equipped to determine the location of"; \ - ${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \ - exit 1; \ - fi - @${ECHO_MSG} "Configuring with '${CONFIGURE_ARGS}'" - -post-install: - @if [ ! -f ${SYSCONFDIR}/lprngtool.conf ]; then \ - ${CP} ${SYSCONFDIR}/lprngtool.conf.sample ${SYSCONFDIR}/lprngtool.conf; \ - fi +post-patch: + @${REINPLACE_CMD} -e \ + 's|=freebsd|=generic|' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e \ + '/cp $$p.sample $$p;/d ; \ + /chmod 644 $$p;/d' ${WRKSRC}/postinstall.generic.sh .include <bsd.port.mk> Modified: head/sysutils/LPRngTool/pkg-descr ============================================================================== --- head/sysutils/LPRngTool/pkg-descr Wed Jul 30 20:54:21 2014 (r363515) +++ head/sysutils/LPRngTool/pkg-descr Wed Jul 30 20:59:56 2014 (r363516) @@ -8,3 +8,5 @@ Graphical User Interface that allows use enable and disable spooling to print queues - configure print filters such as IFHP and the RedHat print filters + +WWW: http://lprng.sourceforge.net/ Modified: head/sysutils/LPRngTool/pkg-plist ============================================================================== --- head/sysutils/LPRngTool/pkg-plist Wed Jul 30 20:54:21 2014 (r363515) +++ head/sysutils/LPRngTool/pkg-plist Wed Jul 30 20:59:56 2014 (r363516) @@ -1,13 +1,11 @@ bin/lprngtool +@sample etc/lprngtool.conf.sample libexec/filters/atalkprint libexec/filters/ncpprint -libexec/filters/smbprint libexec/filters/printerdb +libexec/filters/smbprint libexec/filters/testpage.asc libexec/filters/testpage.ps libexec/filters/testpage-a4.ps +man/man1/lprngtool.1.gz @dirrmtry libexec/filters -%%CWD%%@cwd / -@unexec if cmp -s %D/%%SYSCONFDIR%%/lprngtool.conf %D/%%SYSCONFDIR%%/lprngtool.conf.sample; then rm -f %D/%%SYSCONFDIR%%/lprngtool.conf; fi -%%SYSCONFDIR%%/lprngtool.conf.sample -@exec [ -f %B/lprngtool.conf ] || cp %B/%f %B/lprngtool.conf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407302059.s6UKxv0C034760>