Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2014 03:29:55 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/187976: sysutils/LPRngTool: Update MASTER_SITES and WWW: line
Message-ID:  <20140327032955.83a47d1edead92452b406fe1@yahoo.com>
Resent-Message-ID: <201403261840.s2QIe26c011473@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187976
>Category:       ports
>Synopsis:       sysutils/LPRngTool: Update MASTER_SITES and WWW: line
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 26 18:40:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Add LICENSE

Remove file:
pkg-install

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/sysutils/LPRngTool/Makefile sysutils/LPRngTool/Makefile
--- /usr/ports/sysutils/LPRngTool/Makefile	2014-01-14 19:08:28.000000000 +0900
+++ sysutils/LPRngTool/Makefile	2014-03-27 00:00:00.000000000 +0900
@@ -3,61 +3,23 @@
 
 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
-EXTRACT_SUFX=	.tgz
+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
-
-.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
-
 .include <bsd.port.mk>
diff -urN /usr/ports/sysutils/LPRngTool/pkg-descr sysutils/LPRngTool/pkg-descr
--- /usr/ports/sysutils/LPRngTool/pkg-descr	2014-01-23 04:18:48.000000000 +0900
+++ sysutils/LPRngTool/pkg-descr	2014-03-27 00:00:00.000000000 +0900
@@ -8,3 +8,5 @@
     enable and disable spooling to print queues
 - configure print filters such as IFHP and the RedHat
     print filters
+
+WWW: http://lprng.sourceforge.net/
diff -urN /usr/ports/sysutils/LPRngTool/pkg-install sysutils/LPRngTool/pkg-install
--- /usr/ports/sysutils/LPRngTool/pkg-install	2014-01-23 04:18:48.000000000 +0900
+++ sysutils/LPRngTool/pkg-install	1970-01-01 09:00:00.000000000 +0900
@@ -1,99 +0,0 @@
-#!/bin/sh
-PREFIX=/usr
-SYSCONFDIR=/usr/etc
-LPRNGTOOL_CONF=/usr/etc/lprngtool.conf
-MANDIR=/usr/man
-VERSION=1.3.1
-#
-# -- START --
-# $FreeBSD: head/sysutils/LPRngTool/pkg-install 340719 2014-01-22 15:52:06Z mat $
-# $Id: postinstall.freebsd.sh,v 1.8 2000/11/27 20:09:31 papowell Exp papowell $
-#
-#  If you are building a PORT, see the
-#  DISTRIBUTIONS/Freebsd directory for a complete port
-#  building package.
-# 
-# This is the shell script that does the postinstall
-# dynamic fixup
-#  It needs to be massaged with the information for
-#  various paths.
-# If you are building a package,  then you do NOT want
-#  to have this executed - it will put the sample files
-#  in place.  You need to do this during the postinstall
-#  step in the package installation.
-#
-echo RUNNING postinstall.freebsd.sh MAKEPACKAGE="$MAKEPACKAGE" MAKEINSTALL="$MAKEINSTALL" PREFIX="$PREFIX" cwd `pwd`
-if [ "$VERBOSE_INSTALL" != "" ] ; then set -x; fi
-fix () {
-	v=`echo $1 | sed -e 's/[:;].*//'`;
-    p=`echo $2 | sed -e 's/:.*//'`; d=`dirname $p`;
-	if expr "$p" : "\|" >/dev/null ; then
-		echo "$v is a filter '$p'" 
-		exit 0
-	fi
-    echo "Putting $p in $d, using $v.sample"
-	if [ ! -d "$d" ] ; then
-		echo "Directory $d does not exist!"
-		mkdir -p $d
-	fi
-	if [ -f $v.sample ] ; then
-		if [ $v.sample != $p.sample ] ; then cp $v.sample $p.sample; fi
-	elif [ -f $v ] ; then
-		if [ $v != $p.sample ] ; then cp $v $p.sample; fi
-	else
-		echo "Do not have $v.sample or $v"
-	fi
-	if [ ! -f $p.sample ] ; then
-		echo "Do not have $p.sample"
-	else
-		if [ -f $p ] ; then
-			date=`date | awk '{ print $6, $2, $3, $4;}' | sed -e 's/  */_/g' `
-			echo "Saving $p in $p.$date"
-			mv $p $p.$date
-		fi
-		chmod 644 $p.sample
-		cp $p.sample $p;
-		chmod 644 $p;
-	fi;
-}
-# we use the /usr/local/etc/rc.d method to start
-# lpd
-# we have to take them from one place and put in another
-if [ "X$MAKEPACKAGE" = "XYES" ] ; then
-	hold=${DESTDIR}${PREFIX}/etc
-	echo "Setting up configuration files path for package creation" ${hold}
-    if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi;
-    cp lprngtool.conf ${hold}/lprngtool.conf.sample
-elif [ X$MAKEINSTALL = XYES ] ; then
-	# we have the port pre-install operation
-	if [ "$MANDIR" = "/usr/man" -a ! -d ${DESTDIR}/usr/man ] ; then
-		# we have the dreaded standard installation
-		# try to make a symbolic link to 
-		echo "Creating symbolic link from /usr/man to /usr/share/man"
-		v=`ln -s ${DESTDIR}/usr/share/man ${DESTDIR}/usr/man`;
-	fi
-	hold=${DESTDIR}${PREFIX}/etc
-	echo "Setting up configuration files path for installation" ${hold}
-    if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi;
-    cp lprngtool.conf ${hold}/lprngtool.conf.sample
-    fix lprngtool.conf "${DESTDIR}${LPRNGTOOL_CONF}"
-elif [ "X$2" = "XPOST-INSTALL" ] ; then
-	# when doing an install from a package we get the file from the package
-	hold=etc
-    if [ -f ${hold}/lprngtool.conf.sample ] ; then
-        fix ${hold}/lprngtool.conf "${LPRNGTOOL_CONF}"
-    else
-        echo "WARNING: configuration files missing from package! CWD " `pwd`
-		ls
-		exit 1
-    fi
-elif [ "X$2" = "XPRE-INSTALL" ] ; then
-	# we have the port pre-install operation
-	if [ "$MANDIR" = "/usr/man" -a ! -d /usr/man ] ; then
-		# we have the dreaded standard installation
-		# try to make a symbolic link to 
-		echo "Creating symbolic link from /usr/man to /usr/share/man"
-		v=`ln -s /usr/share/man /usr/man`;
-	fi
-fi
-exit 0
diff -urN /usr/ports/sysutils/LPRngTool/pkg-plist sysutils/LPRngTool/pkg-plist
--- /usr/ports/sysutils/LPRngTool/pkg-plist	2014-01-23 04:18:48.000000000 +0900
+++ sysutils/LPRngTool/pkg-plist	2014-03-27 00:00:00.000000000 +0900
@@ -1,13 +1,13 @@
 bin/lprngtool
+@unexec if cmp -s %D/etc/lprngtool.conf %D/etc/lprngtool.conf.sample; then rm -f %D/etc/lprngtool.conf; fi
+etc/lprngtool.conf.sample
+@exec [ -f %B/lprngtool.conf ] || cp %B/%f %B/lprngtool.conf
 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
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140327032955.83a47d1edead92452b406fe1>