Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  1 Feb 2005 10:44:07 +0100 (CET)
From:      Florent Thoumie <flz@xbsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        papowell@astart.com
Subject:   ports/76945: Update port: sysutils/LPRng - fix packing list, add a new configuration files handling policy
Message-ID:  <20050201094407.CC12C119ED@gate.xbsd.org>
Resent-Message-ID: <200502010950.j119oBF2042841@freefall.freebsd.org>

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

>Number:         76945
>Category:       ports
>Synopsis:       Update port: sysutils/LPRng - fix packing list, add a new configuration files handling policy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 01 09:50:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Florent Thoumie
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
Xbsd.org
>Environment:

System: FreeBSD gate.xbsd.org 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Wed Nov 24 16:35:34 CET 2004 root@gate.xbsd.org:/usr/src/sys/i386/compile/GATE i386

>Description:

I have asked for review on ports@ but it seems quite a few people are using this port.

The major changes are :

x if you install the port with SYSCONFDIR=/etc and you
modify configuration files, they will be renamed with
.saved suffix upon deinstall. .saved files are restored at
install stage, so that portupgrade works correctly.

x if you install the port with SYSCONFDIR=/etc, default
lpr files (configuration, manpages and binaries) are saved
with an .orig suffix. At deinstall, each file is restored if
$file.orig is more recent than $file, that should be the case
if you haven't modified $file, this is to avoid restoring
old backuped files when you have later installed a new world.

x all files are correctly added to the packing list
(configuration files and manpages).

x i've replaced the original pkg-* scripts with a single one.

Maintainer (papowell@astart.com) cc'ed.

>How-To-Repeat:
	
>Fix:

	

--- lprng.diff begins here ---
diff -ruN LPRng.orig/Makefile LPRng/Makefile
--- LPRng.orig/Makefile	Fri Jan 28 12:16:20 2005
+++ LPRng/Makefile	Sun Jan 30 17:11:03 2005
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	LPRng
-PORTVERSION=	3.8.26
+PORTVERSION=	3.8.28
 CATEGORIES=	sysutils print
 MASTER_SITES=	ftp://ftp.lprng.com/pub/%SUBDIR%/ \
 		ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \
@@ -23,8 +23,14 @@
 
 GNU_CONFIGURE=	yes
 USE_INC_LIBTOOL_VER=13
-INSTALLS_SHLIB=	yes
 
+SUB_FILES=	pkg-message pkg-install
+SUB_LIST=	SYSCONFDIR="${SYSCONFDIR}"
+
+PKGDEINSTALL=	${PKGINSTALL}
+
+CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib" \
+		CPPFLAGS="-I${LOCALBASE}/include"
 CONFIGURE_ARGS=	\
 		--with-sbindir=${PREFIX}/sbin \
 		--with-filterdir=${PREFIX}/libexec/filters \
@@ -32,15 +38,15 @@
 		--with-lpd_conf_path=${PREFIX}/etc/lpd.conf \
 		--with-lpd_perms_path=${PREFIX}/etc/lpd.perms \
 		--with-printcap_path=/etc/printcap \
-		LDFLAGS="-L${LOCALBASE}/lib" \
-		CPPFLAGS="-I${LOCALBASE}/include" \
 		--with-ld_library_path="${PREFIX}/lib:/lib:/usr/lib:/${LOCALBASE}/lib" \
 		--enable-gdbm=${LOCALBASE}
-.if defined(PREFIX)
-  CONFIGURE_ARGS+=  --prefix="${PREFIX}"
-.endif
+
 .if defined(SYSCONFDIR)
-  CONFIGURE_ARGS+=  --sysconfdir="${SYSCONFDIR}"
+CONFIGURE_ARGS+=	--sysconfdir="${SYSCONFDIR}"
+PLIST_SUB+=	CWD="" SYSCONFDIR="${SYSCONFDIR:S,^/,,}"
+.else
+SYSCONFDIR=	${PREFIX}/etc
+PLIST_SUB+=	CWD="@comment " SYSCONFDIR="${SYSCONFDIR:S,^${PREFIX}/,,}"
 .endif
 
 MAN1=	lpf.1 psbanner.1 lp.1 cancel.1 lprng_certs.1 lprng_index_certs.1 \
@@ -48,6 +54,12 @@
 MAN5=	printcap.5 lpd.conf.5 lpd.perms.5
 MAN8=	lpc.8 checkpc.8 lpd.8
 
+.include <bsd.port.pre.mk>
+
+.if ${PREFIX} == "/usr"
+CONFIGURE_ARGS+=	--mandir="${PREFIX}/share/man"
+.endif
+
 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"
@@ -63,18 +75,30 @@
 		${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \
 	fi
 
+post-patch:
+	@${ECHO} "#! /bin/sh" > ${WRKSRC}/postinstall.freebsd.sh
+
+pre-install: apply-slist
+	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
 post-install:
+	@${INSTALL_DATA} ${WRKSRC}/lpd.conf ${SYSCONFDIR}/lpd.conf.sample
+	@${INSTALL_DATA} ${WRKSRC}/lpd.perms ${SYSCONFDIR}/lpd.perms.sample
+	@${INSTALL_DATA} ${WRKSRC}/printcap ${SYSCONFDIR}/printcap.sample
+	@${MKDIR} ${PREFIX}/etc/rc.d
+	@${INSTALL_DATA} ${WRKSRC}/init.freebsd ${PREFIX}/etc/rc.d/lprng.sh
 .if !defined(NOPORTDOCS)
 	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
 	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}/Reference
 	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}/PrintingCookbook
 .for ext in html pdf ppt ps txt gif jpg png
-	for i in `${LS} ${WRKSRC}/DOCS | ${GREP} "\.${ext}$$"`; \
+	@for i in `${LS} ${WRKSRC}/DOCS | ${GREP} "\.${ext}$$"`; \
 		do ${INSTALL_DATA} ${WRKSRC}/DOCS/$$i ${DOCSDIR}; done
-	for i in `${LS} ${WRKSRC}/PrintingCookbook/HTML | ${GREP} "\.${ext}$$"`; \
+	@for i in `${LS} ${WRKSRC}/PrintingCookbook/HTML | ${GREP} "\.${ext}$$"`; \
 		do ${INSTALL_DATA} ${WRKSRC}/PrintingCookbook/HTML/$$i ${DOCSDIR}/PrintingCookbook; done;
 .endfor
 .endif
-	@${SED} -e "s!DOCSDIR!${DOCSDIR}/!" ${PKGMESSAGE}
+	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN LPRng.orig/distinfo LPRng/distinfo
--- LPRng.orig/distinfo	Fri Jan 28 12:16:20 2005
+++ LPRng/distinfo	Fri Jan 28 14:35:43 2005
@@ -1,2 +1,2 @@
-MD5 (LPRng-3.8.26.tgz) = 654a4a05a9b43b7592060a57c743c940
-SIZE (LPRng-3.8.26.tgz) = 10557934
+MD5 (LPRng-3.8.28.tgz) = 1b3a0abd291b260eab6087ac0e61ed84
+SIZE (LPRng-3.8.28.tgz) = 10212500
diff -ruN LPRng.orig/files/pkg-install.in LPRng/files/pkg-install.in
--- LPRng.orig/files/pkg-install.in	Thu Jan  1 01:00:00 1970
+++ LPRng/files/pkg-install.in	Sat Jan 29 01:10:52 2005
@@ -0,0 +1,119 @@
+#! /bin/sh
+
+prefix=%%PREFIX%%
+sysconfdir=%%SYSCONFDIR%%
+
+case "x$2" in
+
+"xPRE-INSTALL")
+
+	# Preserve original files from being overwritten.
+
+	if [ "x$prefix" = "x/usr" ]; then
+		cd $prefix
+		for i in bin/lp bin/lpq bin/lpr bin/lprm sbin/lpc sbin/lpd \
+			share/man/man1/lp.1.gz share/man/man1/lpq.1.gz \
+			share/man/man1/lpr.1.gz share/man/man1/lprm.1.gz \
+			share/man/man5/printcap.5.gz share/man/man8/lpc.8.gz \
+			share/man/man8/lpd.8.gz ; do
+			cp -p $i $i.orig
+		done
+	fi
+
+	;;
+
+"xPOST-INSTALL")
+
+	cd $sysconfdir
+
+	# Preserve original configuration files from being overwritten.
+	# Restore previously saved configuration if possible.
+
+	if [ "x$sysconfdir" = "x/etc" ]; then
+		for i in lpd.conf lpd.perms printcap; do
+			[ -f $i ] && mv $i $i.orig
+			[ -f $i.saved ] && mv $i.saved $i || cp $i.sample $i
+		done
+	else
+		for i in lpd.conf lpd.perms printcap; do
+			[ -f $i.saved ] && mv $i.saved $i || cp $i.sample $i
+		done
+	fi
+
+	# This is a trick to detect if the user installed a new world at deinstall stage.
+
+	if [ "x$prefix" = "x/usr" ]; then
+		cd $prefix
+		for i in bin/lp bin/lpq bin/lpr bin/lprm sbin/lpc sbin/lpd \
+			share/man/man1/lp.1.gz share/man/man1/lpq.1.gz \
+			share/man/man1/lpr.1.gz share/man/man1/lprm.1.gz \
+			share/man/man5/printcap.5.gz share/man/man8/lpc.8.gz \
+			share/man/man8/lpd.8.gz ; do
+			touch $i.orig
+		done
+	fi
+
+	;;
+
+"xDEINSTALL")
+
+	cd $sysconfdir
+
+	# Remove unchanged files.
+
+	for i in lpd.conf lpd.perms printcap; do
+		cmp -s $i $i.sample && rm -f $i
+	done
+
+	# Remove backup files if installworld overwrited LPRng files.
+
+	if [ "x$prefix" = "x/usr" ]; then
+		cd $prefix
+		for i in bin/lp bin/lpq bin/lpr bin/lprm sbin/lpc sbin/lpd \
+			share/man/man1/lp.1.gz share/man/man1/lpq.1.gz \
+			share/man/man1/lpr.1.gz share/man/man1/lprm.1.gz \
+			share/man/man5/printcap.5.gz share/man/man8/lpc.8.gz \
+			share/man/man8/lpd.8.gz ; do
+			[ $i -nt $i.orig ] && rm $i.orig
+		done
+	fi
+
+	;;
+
+"xPOST-DEINSTALL")
+
+	cd $sysconfdir
+
+	# Save remaining modified files so we can restore them at next install.
+	# Restore original files when LPRng files haven't changed.
+
+	for i in lpd.conf lpd.perms printcap; do
+		if [ "x$sysconfdir" = "x/etc" ]; then
+			if [ -f $i ]; then
+				mv $i $i.saved
+			else
+				[ -f $i.orig ] && mv $i.orig $i
+			fi
+		else
+			[ -f $i ] && mv $i $i.saved
+		fi
+	done
+
+	# Restore backup files.
+
+	if [ "x$prefix" = "x/usr" ]; then
+		cd $prefix
+		for i in bin/lp bin/lpq bin/lpr bin/lprm sbin/lpc sbin/lpd \
+			share/man/man1/lp.1.gz share/man/man1/lpq.1.gz \
+			share/man/man1/lpr.1.gz share/man/man1/lprm.1.gz \
+			share/man/man5/printcap.5.gz share/man/man8/lpc.8.gz \
+			share/man/man8/lpd.8.gz ; do
+			[ -f $i.orig ] && mv $i.orig $i
+		done
+	fi
+
+	;;
+
+esac
+
+exit 0
diff -ruN LPRng.orig/files/pkg-message.in LPRng/files/pkg-message.in
--- LPRng.orig/files/pkg-message.in	Thu Jan  1 01:00:00 1970
+++ LPRng/files/pkg-message.in	Fri Jan 28 15:45:28 2005
@@ -0,0 +1,30 @@
+**********************************************************************
+If LPRng is not activated at installation time,
+to activate the LPRng printing system do the following:
+
+On FreeBSD:
+  set'lpd_enable=NO' and 'lprng_enable=YES' in /etc/rc.conf.
+  The LPRng startup script is in /usr/local/etc/rc.d/lprng.sh
+
+  If lprng_enable != NO then the LPRng lpd will run.
+
+- run 'checkpc -f' to make sure that necessary files have been created
+
+- reboot or kill the old lpd using 'killall lpd' and
+  start the new one using '%%PREFIX%%/etc/rc.d/lprng.sh start'.
+
+LPRng uses the printcap, lpd.conf, and lpd.perms configuration files
+
+For further information, see the LPRng Documentation:
+  %%DOCSDIR%%
+
+The LPRng Web Site is http://www.lprng.com
+
+Commercial support is available from Astart Technologies:
+
+Patrick Powell                 Astart Technologies
+papowell@astart.com            6741 Convoy Court
+Network and System             San Diego, CA 92111
+  Consulting                   858-874-6543 FAX 858-751-2435
+LPRng - Print Spooler (http://www.lprng.com)
+**********************************************************************
diff -ruN LPRng.orig/pkg-deinstall LPRng/pkg-deinstall
--- LPRng.orig/pkg-deinstall	Fri Jan 28 12:16:20 2005
+++ LPRng/pkg-deinstall	Thu Jan  1 01:00:00 1970
@@ -1,36 +0,0 @@
-#!/bin/sh
-PREFIX=/usr/local
-LPD_PATH="/usr/local/sbin/lpd"
-INSTALL="/usr/bin/install -c -o root -g wheel"
-LPD_PERMS_PATH="/usr/local/etc/lpd/lpd.perms"
-LPD_CONF_PATH="/usr/local/etc/lpd/lpd.conf"
-PRINTCAP_PATH="/usr/local/etc/printcap"
-SYSCONFDIR=/usr/local/etc
-SBINDIR=/usr/local/sbin
-FILTER_DIR=/usr/local/libexec/filters
-LOCKFILE="/var/run/lpd"
-CONFIG_SUBDIR=lpd
-PSHOWALL="-ax"
-VERSION=3.8.23
-INIT=
-MANDIR=/usr/local/man
-#
-# -- START --
-# preremove.freebsd.sh,v 1.1 2001/08/21 20:33:17 root Exp
-#
-# This is the shell script that does the preremove
-# lpd shutdown.  It is the script from hell
-echo RUNNING preremove.freebsd.sh parms "'$0 $@'"
-if [ "$VERBOSE_INSTALL" != "" ] ; then set -x; fi
-if [ "X$2" = "XDEINSTALL" ] ; then
-	echo "Stopping LPD"
-	killall -INT lpd
-	if [ -f /etc/rc.conf ] ; then
-		perl -spi.bak -e '$_ = "" if( /lprng_enable/ );' ${DESTDIR}/etc/rc.conf 
-	fi
-	init=/usr/local/etc/rc.d/lprng.sh
-	if [ -f $init ] ; then
-		rm -f $init
-	fi
-fi
-exit 0
diff -ruN LPRng.orig/pkg-install LPRng/pkg-install
--- LPRng.orig/pkg-install	Fri Jan 28 12:16:20 2005
+++ LPRng/pkg-install	Thu Jan  1 01:00:00 1970
@@ -1,172 +0,0 @@
-#!/bin/sh
-PREFIX=/usr/local
-LPD_PATH="/usr/local/sbin/lpd"
-INSTALL="/usr/bin/install -c -o root -g wheel"
-LPD_PERMS_PATH="/usr/local/etc/lpd/lpd.perms"
-LPD_CONF_PATH="/usr/local/etc/lpd/lpd.conf"
-PRINTCAP_PATH="/usr/local/etc/printcap"
-SYSCONFDIR=/usr/local/etc
-SBINDIR=/usr/local/sbin
-FILTER_DIR=/usr/local/libexec/filters
-LOCKFILE="/var/run/lpd"
-CONFIG_SUBDIR=lpd
-PSHOWALL="-ax"
-VERSION=3.8.23
-INIT=
-MANDIR=/usr/local/man
-#
-# -- START --
-# postinstall.freebsd.sh,v 1.1 2001/08/21 20:33:16 root Exp
-#
-#  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 parms "'$0 $@'" MAKEPACKAGE="$MAKEPACKAGE" MAKEINSTALL="$MAKEINSTALL" PREFIX="$PREFIX" INIT="$INIT" 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'" 
-        return 0
-    fi
-    echo "Putting $p in $d, using $v.sample"
-    if [ ! -d "$d" ] ; then
-        echo "Directory $d does not exist!"
-        mkdir -p $d
-    fi
-	old_version=` echo $p | sed -e "s,/$CONFIG_SUBDIR/,/,"`
-	if [ ! -f "$p" -a "$old_version" != "$p" -a -f "$old_version" ] ; then
-		echo "WARNING: Location of $p changed from $old_version"
-		echo "   Copying $old_version to $p"
-		cp "$old_version" "$p" || echo "cannot copy $old_version to $p"
-	fi
-    if [ -f $v.sample ] ; then
-        if [ $v.sample != $p.sample ] ; then ${INSTALL} $v.sample $p.sample; fi
-    elif [ -f $v ] ; then
-        if [ $v != $p.sample ] ; then ${INSTALL} $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"
-    elif [ ! -f $p ] ; then
-        ${INSTALL} -m 644 $p.sample $p;
-    fi;
-}
-
-startserver(){
-	cnf=${DESTDIR}/etc/rc.conf
-	if [ -f ${cnf} ] ; then
-		if grep lprng ${cnf} ; then
-			: # no changes
-		else
-			echo 'lprng_enable="YES"' >> ${cnf}
-		fi
-	fi
-	echo "Stopping LPD"
-	killall lpd || true
-	sleep 2;
-	# check the printcap information
-	echo "Checking Printcap Info and fixing permissions"
-	${SBINDIR}/checkpc -f || true
-	# restart the server
-	echo "Restarting server"
-	sh $init start || true
-	echo "Done"
-}
-
-# we use the /usr/local/etc/rc.d method to start
-init=${DESTDIR}/usr/local/etc/rc.d/lprng.sh
-
-# we have to take them from one place and put in another
-if [ "X$MAKEPACKAGE" = "XYES" ] ; then
-    hold=${DESTDIR}${SYSCONFDIR}/lpd
-    echo "Setting up configuration files path for package" ${hold}
-    # we put files into the destination
-    if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi;
-    ${INSTALL} lpd.perms ${hold}/lpd.perms.sample
-    ${INSTALL} lpd.conf ${hold}/lpd.conf.sample
-    ${INSTALL} printcap ${hold}/printcap.sample
-	${INSTALL} init.freebsd ${hold}/lprng.sh.sample
-	exit 0
-fi
-
-if [ "X$MAKEINSTALL" = XYES ] ; then
-    hold=${DESTDIR}${SYSCONFDIR}/lpd
-    echo "Setting up configuration files path for installation" ${hold}
-	# 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
-    if [ ! -d ${hold} ] ; then mkdir -p ${hold} ; fi;
-    ${INSTALL} lpd.perms ${hold}/lpd.perms.sample
-    ${INSTALL} lpd.conf ${hold}/lpd.conf.sample
-    ${INSTALL} printcap ${hold}/printcap.sample
-	${INSTALL} init.freebsd ${hold}/lprng.sh.sample
-
-    fix ${hold}/lpd.perms "${DESTDIR}${LPD_PERMS_PATH}"
-    fix ${hold}/lpd.conf "${DESTDIR}${LPD_CONF_PATH}"
-    fix ${hold}/printcap "${DESTDIR}${PRINTCAP_PATH}"
-    if [ "$INIT" != no ] ; then
-		echo "Setting up init script $init using init.freebsd"
-		if [ ! -d `dirname $init` ] ; then mkdir -p `dirname $init ` ; fi;
-		rm -f $init
-		${INSTALL} -m 755 init.freebsd $init
-		#startserver;
-	fi
-
-	exit 0
-fi
-
-# run from a package
-if [ "X$2" = "XPOST-INSTALL" ] ; then
-    # when doing an install from a package we get the file from the hold locations
-    hold=etc/lpd
-	echo "Installing configuration files from `pwd` - $hold - `ls $hold`"
-    if [ -f ${hold}/lpd.perms.sample ] ; then
-        fix ${hold}/lpd.perms "${LPD_PERMS_PATH}"
-        fix ${hold}/lpd.conf "${LPD_CONF_PATH}"
-        fix ${hold}/printcap "${PRINTCAP_PATH}"
-		echo "Setting up init script $init.sample using ${hold}/lprng.sh.sample"
-		${INSTALL} -c -m 755 ${hold}/lprng.sh.sample $init.sample;
-		if [ "$INIT" != no ] ; then
-			echo "Setting up init script $init using $init.sample"
-			${INSTALL} -c -m 755 $init.sample $init;
-			#startserver;
-		fi
-    else
-        echo "WARNING: configuration files missing from package! CWD " `pwd`
-		echo "Contents"
-		ls
-		echo "Hold $hold"
-		ls $hold
-        exit 1
-    fi
-	exit 0;
-fi
-if [ "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
-	exit 0
-fi
-exit 0
diff -ruN LPRng.orig/pkg-message LPRng/pkg-message
--- LPRng.orig/pkg-message	Fri Jan 28 12:16:20 2005
+++ LPRng/pkg-message	Thu Jan  1 01:00:00 1970
@@ -1,28 +0,0 @@
-If LPRng is not activated at installation time,
-to activate the LPRng printing system do the following:
-
-On FreeBSD:
-  set'lpd_enable=NO' and 'lprng_enable=YES' in /etc/rc.conf.
-  The LPRng startup script is in /usr/local/etc/rc.d/lprng.sh
-
-  If lprng_enable != NO then the LPRng lpd will run.
-
-- run 'checkpc -f' to make sure that necessary files have been created
-
-- reboot or kill the old lpd using 'killall lpd' and
-  start the new one using '/usr/local/etc/rc.d/lprng.sh start'.
-
-LPRng uses the printcap, lpd.conf, and lpd.perms configuration files
-
-For further information, see the LPRng Documentation:
-  DOCSDIR
-
-The LPRng Web Site is http://www.lprng.com
-
-Commercial support is available from Astart Technologies:
-
-Patrick Powell                 Astart Technologies
-papowell@astart.com            6741 Convoy Court
-Network and System             San Diego, CA 92111
-  Consulting                   858-874-6543 FAX 858-751-2435
-LPRng - Print Spooler (http://www.lprng.com)
diff -ruN LPRng.orig/pkg-plist LPRng/pkg-plist
--- LPRng.orig/pkg-plist	Fri Jan 28 12:16:20 2005
+++ LPRng/pkg-plist	Sun Jan 30 16:53:50 2005
@@ -4,14 +4,7 @@
 bin/lpr
 bin/lprm
 bin/lpstat
-etc/lpd.conf
-etc/lpd.conf.sample
-etc/lpd.perms
-etc/lpd.perms.sample
-etc/lpd/lpd.conf.sample
-etc/lpd/lpd.perms.sample
-etc/lpd/lprng.sh.sample
-etc/lpd/printcap.sample
+etc/rc.d/lprng.sh
 lib/liblpr.a
 libexec/filters/lpbanner
 libexec/filters/lpf
@@ -61,8 +54,13 @@
 %%PORTDOCS%%%%DOCSDIR%%/license.txt
 %%PORTDOCS%%%%DOCSDIR%%/rfc1179.txt
 %%PORTDOCS%%%%DOCSDIR%%/y2k.txt
-@dirrm %%PORTDOCS%%%%DOCSDIR%%/Reference
-@dirrm %%PORTDOCS%%%%DOCSDIR%%/PrintingCookbook
-@dirrm %%PORTDOCS%%%%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/Reference
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/PrintingCookbook
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm libexec/filters
-@dirrm etc/lpd
+%%CWD%%@cwd /
+%%SYSCONFDIR%%/lpd.conf.sample
+%%SYSCONFDIR%%/lpd.perms.sample
+%%SYSCONFDIR%%/printcap.sample
+%%CWD%%@unexec rmdir %D/etc/rc.d 2> /dev/null || true
+%%CWD%%@unexec rmdir %D/etc 2> /dev/null || true
--- lprng.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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