mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Replace the old cups.sh script with a new rc.d style cupsd[.sh]
Approved by: Sergey Akifyev <asa@agava.com> (maintainer)
This commit is contained in:
parent
f1923810c6
commit
f42467b02f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154585
@ -9,7 +9,7 @@
|
||||
|
||||
PORTNAME= cups-base
|
||||
PORTVERSION= ${CUPS_PORTVER}
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
PORTEPOCH= ${CUPS_PORTEPOCH}
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= ${CUPS_MASTER_SITES}
|
||||
@ -19,6 +19,7 @@ COMMENT= The Common UNIX Printing System: headers, libs, & daemons
|
||||
|
||||
USE_REINPLACE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_RC_SUBR= cupsd
|
||||
|
||||
MANLANG= "" es fr
|
||||
|
||||
@ -33,8 +34,6 @@ post-patch:
|
||||
${WRKSRC}/man/*.man
|
||||
@${REINPLACE_CMD} -e 's|CXX="$$CC"||g' \
|
||||
${WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
@${CP} ${WRKSRC}/cups.sh.in ${WRKSRC}/cups.sh.in.presed
|
||||
@${SED} 40d ${WRKSRC}/cups.sh.in.presed > ${WRKSRC}/cups.sh.in
|
||||
|
||||
pre-install:
|
||||
@${ECHO_MSG} "===>" Stopping cupsd ...
|
||||
@ -47,7 +46,6 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${CUPS_ETCDIR}/${f}.N
|
||||
cd ${CUPS_ETCDIR}; if test ! -f ${f}; then ${CP} -p ${f}.N ${f}; fi
|
||||
.endfor # classes.conf client.conf cupsd.conf printers.conf
|
||||
cd ${CUPS_RCDIR}; ${MV} cups cups.sh.sample
|
||||
${FIND} ${PREFIX}/man/cat* -type l -name '*.0' -delete
|
||||
${MKDIR} ${CUPS_SPOOLDIR} ${CUPS_SPOOLDIR}/tmp
|
||||
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} ${CUPS_SPOOLDIR}
|
||||
|
35
print/cups-base/files/cupsd.in
Normal file
35
print/cups-base/files/cupsd.in
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: cupsd
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following to /etc/rc.conf[.local] to enable this service
|
||||
#
|
||||
# cupsd_enable="YES"
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name=cupsd
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
start_precmd=${name}_prestart
|
||||
|
||||
command=%%PREFIX%%/sbin/cupsd
|
||||
extra_commands=reload
|
||||
|
||||
cupsd_prestart()
|
||||
{
|
||||
if [ -n "$TZ" ]; then
|
||||
export TZ
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${cupsd_enable=NO}
|
||||
|
||||
run_rc_command "$1"
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Fri Mar 7 01:36:00 2003
|
||||
+++ Makefile Wed Jun 11 01:03:08 2003
|
||||
--- Makefile.orig Mon Jan 3 11:29:44 2005
|
||||
+++ Makefile Fri Jan 27 00:04:20 2006
|
||||
@@ -28,8 +28,8 @@
|
||||
# Directories to make...
|
||||
#
|
||||
@ -20,3 +20,12 @@
|
||||
echo Installing in data...
|
||||
(cd data; $(MAKE) $(MFLAGS) install)
|
||||
echo Installing in doc...
|
||||
@@ -109,8 +107,6 @@
|
||||
$(INSTALL_DATA) cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \
|
||||
$(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \
|
||||
$(INSTALL_DATA) cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \
|
||||
- else \
|
||||
- $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDDIR)/cups; \
|
||||
fi \
|
||||
fi
|
||||
|
||||
|
@ -19,7 +19,3 @@ that use these filters. This software is available in the cups-pstoraster
|
||||
port.
|
||||
|
||||
WWW: http://www.cups.org/
|
||||
|
||||
- AlanE (maintainer)
|
||||
alane@freebsd.org, ports@geeksrus.net
|
||||
[original text by greid@ukug.uk.freebsd.org]
|
||||
|
@ -30,3 +30,13 @@ To enable printing under Gimp do the following:
|
||||
3) Restart cupsd
|
||||
|
||||
**********************************************************************
|
||||
|
||||
The cups-base port now uses a new style rc.d startup
|
||||
script. Please remove any old cups.sh* scripts you
|
||||
might have in /usr/local/etc/rc.d, or your local
|
||||
PREFIX. You should also put the following line in
|
||||
/etc/rc.conf.local, or /etc/rc.conf to start cupsd
|
||||
automatically at boot time:
|
||||
|
||||
cupsd_enable="yes"
|
||||
**********************************************************************
|
||||
|
@ -20,7 +20,6 @@ etc/cups/mime.types.N
|
||||
@unexec if cmp -s %D/etc/cups/printers.conf.N %D/etc/cups/printers.conf; then rm -f %D/etc/cups/printers.conf; fi
|
||||
etc/cups/printers.conf.N
|
||||
@exec if test ! -f %D/etc/cups/printers.conf; then cp -p %D/etc/cups/printers.conf.N %D/etc/cups/printers.conf; fi
|
||||
etc/rc.d/cups.sh.sample
|
||||
include/cups/cups.h
|
||||
include/cups/http.h
|
||||
include/cups/image.h
|
||||
|
Loading…
Reference in New Issue
Block a user