Tedu LPRng.
LPRng has been left off unmaintained in the ports tree for its last 14 releases and is mostly dead; there are alternatives. no objection from my fellow porters
This commit is contained in:
parent
dd9c501f2d
commit
677c20262a
@ -1,65 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.41 2013/03/11 11:41:29 espie Exp $
|
||||
|
||||
COMMENT= enhanced printer spooler
|
||||
|
||||
DISTNAME= LPRng-3.8.21
|
||||
REVISION = 2
|
||||
CATEGORIES= sysutils print
|
||||
SHARED_LIBS= lpr 0.0
|
||||
|
||||
MASTER_SITES= ftp://ftp.lprng.com/pub/LPRng/LPRng/ \
|
||||
ftp://sunsite.ualberta.ca/pub/Mirror/LPRng/ \
|
||||
ftp://ftp.mono.org/pub/LPRng/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
# GPL / Artistic
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
WANTLIB= c crypto ssl util
|
||||
|
||||
USE_LIBTOOL= Yes
|
||||
USE_GROFF = Yes
|
||||
CONFIGURE_STYLE= gnu dest
|
||||
CONFIGURE_ARGS= --with-sbindir=${PREFIX}/sbin \
|
||||
--with-filterdir=${PREFIX}/libexec/filters \
|
||||
--with-lpd_conf_path=${CONFDIR}/lpd.conf \
|
||||
--with-lpd_perms_path=${CONFDIR}/lpd.perms \
|
||||
--with-printcap_path=${SYSCONFDIR}/printcap \
|
||||
--with-cppopts=-I${LOCALBASE}/include \
|
||||
--with-ldopts=-L${LOCALBASE}/lib \
|
||||
--disable-nls
|
||||
|
||||
CFLAGS+= -Dlog=mylog
|
||||
FAKE_FLAGS= POSTINSTALL=NO prefix=${TRUEPREFIX} \
|
||||
MAN=${TRUEPREFIX}/man \
|
||||
FILTER_DIR=${TRUEPREFIX}/libexec/filters \
|
||||
LPD_PERMS_PATH=${TRUEPREFIX}${CONFDIR}/lpd.perms \
|
||||
LPD_CONF_PATH=${TRUEPREFIX}${CONFDIR}/lpd.conf \
|
||||
PRINTCAP_PATH=${TRUEPREFIX}${CONFDIR}/printcap
|
||||
|
||||
CONFDIR= ${SYSCONFDIR}/LPRng
|
||||
HTMLFILES= LPRng-HOWTO.html
|
||||
|
||||
SUBST_VARS= CONFDIR
|
||||
|
||||
.include <bsd.port.arch.mk>
|
||||
|
||||
.if ${PROPERTIES:Mgcc4}
|
||||
CFLAGS+= -Wno-error=address
|
||||
.endif
|
||||
|
||||
# we don't trust LPRng's (pre|post)install scripts
|
||||
pre-fake:
|
||||
mkdir -p ${WRKINST}${CONFDIR}
|
||||
cp ${WRKSRC}/lpd.conf ${WRKSRC}/lpd.perms ${WRKSRC}/printcap \
|
||||
${WRKINST}${CONFDIR}
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/LPRng
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/LPRng
|
||||
cd ${WRKSRC}/HOWTO && ${INSTALL_DATA} ${HTMLFILES} \
|
||||
${PREFIX}/share/doc/LPRng
|
||||
.for i in lpd.conf lpd.perms printcap
|
||||
${INSTALL_DATA} ${WRKINST}${CONFDIR}/$i ${PREFIX}/share/examples/LPRng
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,5 +0,0 @@
|
||||
MD5 (LPRng-3.8.21.tgz) = OW0KSaRTOtlzF276m/BUsQ==
|
||||
RMD160 (LPRng-3.8.21.tgz) = AFwxL9rLqAUtqU1lO6nMjhbnfA8=
|
||||
SHA1 (LPRng-3.8.21.tgz) = 8yLanOWzWA2OUnw04CSP5au9xGo=
|
||||
SHA256 (LPRng-3.8.21.tgz) = dE9UfW+uMrkd/Yy6ZPGPY34mFHm1oD2E93qIUz9aoZc=
|
||||
SIZE (LPRng-3.8.21.tgz) = 9830808
|
@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Find out if lpd is already running. I guess you could also detect
|
||||
# the existence of /var/run/printer.
|
||||
|
||||
killall -s lpd > /dev/null 2>&1
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo -n ' printer'; @@PREFIX@@/libexec/lpd
|
||||
fi
|
@ -1,48 +0,0 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.2 2010/05/24 10:20:37 espie Exp $
|
||||
--- src/Makefile.in.orig Mon Aug 5 23:45:54 2002
|
||||
+++ src/Makefile.in Mon May 24 12:17:44 2010
|
||||
@@ -172,7 +172,7 @@ VPATH=..:.:${SRC}/include:${SRC}/common:${SRC}
|
||||
########################################################################
|
||||
|
||||
.SUFFIXES: .lo .sh
|
||||
-LINK = $(LIBTOOL) --mode=link $(LDCC) $(LDFLAGS) -o $@
|
||||
+LINK = $(LIBTOOL) --mode=link $(LDCC) -o $@
|
||||
.c.lo:
|
||||
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
|
||||
|
||||
@@ -264,25 +264,25 @@ liblpr.la: $(LIBLPR_OBJS)
|
||||
$(LINK) $(LIBLPR_OBJS) -rpath ${libdir}
|
||||
|
||||
lpd: $(LPD_OBJS) liblpr.la
|
||||
- $(LINK) ${LPD_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${LPD_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
lpr: $(LPR_OBJS) liblpr.la
|
||||
- $(LINK) ${LPR_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${LPR_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
lpq: $(LPQ_OBJS) liblpr.la
|
||||
- $(LINK) ${LPQ_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${LPQ_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
lpstat: $(LPSTAT_OBJS) liblpr.la
|
||||
- $(LINK) ${LPSTAT_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${LPSTAT_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
lprm: $(LPRM_OBJS) liblpr.la
|
||||
- $(LINK) ${LPRM_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${LPRM_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
lpc: $(LPC_OBJS) liblpr.la
|
||||
- $(LINK) ${LPC_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${LPC_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
checkpc: $(CHECKPC_OBJS) liblpr.la
|
||||
- $(LINK) ${CHECKPC_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${CHECKPC_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
lpf: $(LPF_OBJS) liblpr.la
|
||||
- $(LINK) ${LPF_OBJS} $(LIBS)
|
||||
+ $(LINK) ${LPF_OBJS} $(LIBS) $(LDFLAGS)
|
||||
lpbanner: $(LPBANNER_OBJS) liblpr.la
|
||||
- $(LINK) ${LPBANNER_OBJS} $(LIBS)
|
||||
+ $(LINK) ${LPBANNER_OBJS} $(LIBS) $(LDFLAGS)
|
||||
monitor: $(MONITOR_OBJS) liblpr.la
|
||||
- $(LINK) ${MONITOR_OBJS} liblpr.la $(LIBS)
|
||||
+ $(LINK) ${MONITOR_OBJS} liblpr.la $(LIBS) $(LDFLAGS)
|
||||
|
||||
authenticate_pgp: ${SRC}/AUTHENTICATE/authenticate_pgp.sh
|
||||
rm -f $@; cp ${SRC}/AUTHENTICATE/authenticate_pgp.sh $@; chmod 555 $@
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_common_lpq_c,v 1.1 2010/05/24 10:20:37 espie Exp $
|
||||
--- src/common/lpq.c.orig Mon May 24 12:18:41 2010
|
||||
+++ src/common/lpq.c Mon May 24 12:19:35 2010
|
||||
@@ -448,7 +448,7 @@ void Term_clear()
|
||||
if( (pid = dofork(0)) == 0 ){
|
||||
setuid( OriginalRUID );
|
||||
close_on_exec(3);
|
||||
- execl(CLEAR,0);
|
||||
+ execl(CLEAR, CLEAR, (void *)0);
|
||||
exit(1);
|
||||
} else if( pid < 0 ){
|
||||
LOGERR_DIE(LOG_ERR) _("fork() failed") );
|
@ -1,15 +0,0 @@
|
||||
$OpenBSD: patch-src_common_ssl_auth_c,v 1.1 2010/10/03 21:41:01 jasper Exp $
|
||||
|
||||
Fix build with OpenSSL 1.0.
|
||||
|
||||
--- src/common/ssl_auth.c.orig Sun Oct 3 22:53:37 2010
|
||||
+++ src/common/ssl_auth.c Sun Oct 3 22:54:48 2010
|
||||
@@ -173,7 +173,7 @@ int SSL_Initialize_ctx(
|
||||
{
|
||||
char *certpath, *certfile, *cp, *cf;
|
||||
char *mycert;
|
||||
- SSL_METHOD *meth = 0;
|
||||
+ const SSL_METHOD *meth = NULL;
|
||||
SSL_CTX *ctx = 0;
|
||||
char header[SMALLBUFFER];
|
||||
char cabuf[MAXPATHLEN], certbuf[MAXPATHLEN], pwbuf[MAXPATHLEN];
|
@ -1,10 +0,0 @@
|
||||
The LPRng software is an enhanced, extended, and portable implementation
|
||||
of the Berkeley LPR print spooler functionality. While providing
|
||||
the same interface and meeting RFC1179 requirements, the implementation
|
||||
is completely new and provides support for the following features:
|
||||
lightweight (no databases needed) lpr, lpc, and lprm programs;
|
||||
dynamic redirection of print queues; automatic job holding; highly
|
||||
verbose diagnostics; multiple printers serving a single queue;
|
||||
client programs do not need to run SUID root; greatly enhanced
|
||||
security checks; and a greatly improved permission and authorization
|
||||
mechanism.
|
@ -1,20 +0,0 @@
|
||||
To activate the new printing system do the following:
|
||||
|
||||
- Copy these config files from ${PREFIX}/share/examples/LPRng
|
||||
to your ${CONFDIR} directory: lpd.conf, lpd.perms and printcap
|
||||
|
||||
- set `lpd_enable=NO' in /etc/rc.conf
|
||||
|
||||
- add the following lines to /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/sbin/lpd ]; then
|
||||
echo -n ' LPRng'; ${PREFIX}/sbin/lpd
|
||||
fi
|
||||
|
||||
- reboot or kill the old lpd and start the new one
|
||||
(`${PREFIX}/sbin/lpd')
|
||||
|
||||
- remember to adjust your aliases or your PATH to use the new programs
|
||||
|
||||
For further information, have a look at:
|
||||
${PREFIX}/share/doc/LPRng
|
@ -1,2 +0,0 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.3 2005/12/23 19:54:18 mbalmer Exp $
|
||||
@lib lib/liblpr.so.${LIBlpr_VERSION}
|
@ -1,54 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.11 2006/10/09 09:15:22 espie Exp $
|
||||
@conflict cups-*
|
||||
bin/cancel
|
||||
bin/lp
|
||||
@mode u+s
|
||||
@owner root
|
||||
bin/lpq
|
||||
bin/lpr
|
||||
bin/lprm
|
||||
bin/lpstat
|
||||
@mode
|
||||
@owner
|
||||
lib/liblpr.a
|
||||
lib/liblpr.la
|
||||
libexec/filters/
|
||||
libexec/filters/lpbanner
|
||||
libexec/filters/lpf
|
||||
libexec/filters/pclbanner
|
||||
libexec/filters/psbanner
|
||||
@man man/man1/cancel.1
|
||||
@man man/man1/lp.1
|
||||
@man man/man1/lpbanner.1
|
||||
@man man/man1/lpf.1
|
||||
@man man/man1/lpq.1
|
||||
@man man/man1/lpr.1
|
||||
@man man/man1/lprm.1
|
||||
@man man/man1/lprng_certs.1
|
||||
@man man/man1/lprng_index_certs.1
|
||||
@man man/man1/lpstat.1
|
||||
@man man/man1/monitor.1
|
||||
@man man/man1/pclbanner.1
|
||||
@man man/man1/psbanner.1
|
||||
@man man/man5/lpd.conf.5
|
||||
@man man/man5/lpd.perms.5
|
||||
@man man/man5/printcap.5
|
||||
@man man/man8/checkpc.8
|
||||
@man man/man8/lpc.8
|
||||
@man man/man8/lpd.8
|
||||
sbin/checkpc
|
||||
@mode u+s
|
||||
@owner root
|
||||
sbin/lpc
|
||||
@mode
|
||||
@owner
|
||||
sbin/lpd
|
||||
sbin/lprng_certs
|
||||
sbin/lprng_index_certs
|
||||
share/doc/LPRng/
|
||||
share/doc/LPRng/LPRng-HOWTO.html
|
||||
share/examples/LPRng/
|
||||
share/examples/LPRng/lpd.conf
|
||||
share/examples/LPRng/lpd.perms
|
||||
share/examples/LPRng/printcap
|
||||
%%SHARED%%
|
Loading…
x
Reference in New Issue
Block a user