mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
- Update to 1.2.7
- Clean up a little bit - Clean up var at deinstallation Approved by: Sergey Akifyev <asa@agava.com> (months of timeouts)
This commit is contained in:
parent
22ce8ee2da
commit
27e3ffc809
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179010
@ -7,18 +7,19 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= cups-base
|
||||
PORTVERSION= 1.2.2
|
||||
PORTNAME= cups
|
||||
PORTVERSION= 1.2.7
|
||||
DISTVERSIONSUFFIX= -source
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${PORTVERSION}/ \
|
||||
ftp://ftp.ntua.gr/pub/gnu/cups/${PORTVERSION}/ \
|
||||
ftp://ftp.easysw.com/pub/cups/${PORTVERSION}/ \
|
||||
ftp://ftp.fisek.com.tr/pub/cups/${PORTVERSION}/ \
|
||||
ftp://ftp.mpg.goe.ni.schule.de/pub/internet/printing/cups/${PORTVERSION}/
|
||||
DISTNAME= cups-${PORTVERSION}-source
|
||||
MASTER_SITES= EASYSW/${PORTNAME}/${DISTVERSION}
|
||||
PKGNAMESUFFIX= -base
|
||||
|
||||
MAINTAINER= asa@agava.com
|
||||
COMMENT= The Common UNIX Printing System
|
||||
COMMENT= Common UNIX Printing System
|
||||
|
||||
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
tiff.4:${PORTSDIR}/graphics/tiff
|
||||
|
||||
CONFLICTS= LPRng-[0-9]*
|
||||
|
||||
@ -28,49 +29,42 @@ USE_GMAKE= yes
|
||||
USE_PERL5_RUN= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_RC_SUBR= cupsd
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
OPTIONS= GNUTLS "Build with GNUTLS library" on \
|
||||
PHP "Build PHP support" off \
|
||||
PYTHON "Build PYTHON support" off \
|
||||
LIBPAPER "Build with libpaper support" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
CUPS_FILESDIR= ${PORTSDIR}/print/cups/files
|
||||
CUPS_ETCDIR= ${PREFIX}/etc/cups
|
||||
CUPS_RCDIR= ${PREFIX}/etc/rc.d
|
||||
CUPS_DOCSDIR= ${PREFIX}/share/doc/cups
|
||||
CUPS_SPOOLDIR= /var/spool/cups
|
||||
CUPS_SOCKET?= /var/run/cups.sock
|
||||
DOCSDIR= ${CUPS_DOCSDIR}
|
||||
WRKSRC= ${WRKDIR}/cups-${PORTVERSION}
|
||||
|
||||
# file, dir ownership
|
||||
CUPSGRP= cups
|
||||
CUPSOWN= cups
|
||||
CUPSSYSGRP= wheel
|
||||
|
||||
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
tiff.4:${PORTSDIR}/graphics/tiff
|
||||
|
||||
CPPFLAGS= -I${LOCALBASE}/include
|
||||
LDFLAGS= -L${LOCALBASE}/lib
|
||||
DSOFLAGS= -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib
|
||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" DSOFLAGS="${DSOFLAGS}"
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
|
||||
CONFIGURE_ARGS+= --localstatedir=/var \
|
||||
--disable-pam \
|
||||
--disable-slp \
|
||||
--with-cups-user=${CUPSOWN} \
|
||||
--with-cups-group=${CUPSGRP} \
|
||||
--with-system-groups=${CUPSSYSGRP} \
|
||||
--with-docdir=${CUPS_DOCSDIR} \
|
||||
--with-rcdir=${CUPS_RCDIR} \
|
||||
--with-docdir=${DOCSDIR} \
|
||||
--with-domainsocket=${CUPS_SOCKET}
|
||||
|
||||
OPTIONS= GNUTLS "Build with GNUTLS library" on \
|
||||
PHP "Build PHP support" off \
|
||||
PYTHON "Build PYTHON support" off \
|
||||
LIBPAPER "Build with libpaper support" off
|
||||
|
||||
CUPS_ETCDIR= ${PREFIX}/etc/cups
|
||||
CUPS_SPOOLDIR= /var/spool/cups
|
||||
CUPS_SOCKET?= /var/run/cups.sock
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
||||
|
||||
# file, dir ownership
|
||||
CUPSGRP= cups
|
||||
CUPSOWN= cups
|
||||
CUPSSYSGRP= wheel
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_GNUTLS)
|
||||
CONFIGURE_ARGS+= --enable-gnutls --disable-openssl
|
||||
LIB_DEPENDS+= gnutls-openssl.13:${PORTSDIR}/security/gnutls
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-gnutls --enable-openssl
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PHP)
|
||||
@ -94,10 +88,6 @@ CONFIGURE_ARGS+= --enable-libpaper
|
||||
LIB_DEPENDS+= paper.2:${PORTSDIR}/print/libpaper
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS+= CPPFLAGS="-I.. -I${LOCALBASE}/include"
|
||||
CONFIGURE_ARGS+= DSOFLAGS="-Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib"
|
||||
CONFIGURE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
MAN1EXT= 1
|
||||
MAN5EXT= 5
|
||||
MAN7EXT= 7
|
||||
@ -145,21 +135,18 @@ pre-configure::
|
||||
@${ECHO_MSG} ${CONFIGURE_ARGS} | fmt
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/SILENT/d;\
|
||||
s|@SSLFLAGS@|@SSLFLAGS@ -I${LOCALBASE}/include|; \
|
||||
s|@SSLLIBS@|@SSLLIBS@ -L${LOCALBASE}/lib|' \
|
||||
${WRKSRC}/Makedefs.in
|
||||
@${REINPLACE_CMD} -e 's|/etc/cups|/usr/local/etc/cups|g' \
|
||||
${WRKSRC}/man/*.man*
|
||||
@${REINPLACE_CMD} -e 's|CXX="$$CC"||g' \
|
||||
${WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
@${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in
|
||||
@${REINPLACE_CMD} -e '/share/s|/usr/share|${PREFIX}/share|g' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e 's|/etc/cups|/usr/local/etc/cups|g' ${WRKSRC}/man/*.man*
|
||||
@${REINPLACE_CMD} -e 's|CXX="$$CC"||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
|
||||
pre-install:
|
||||
@${ECHO_MSG} "===>" Stopping cupsd ...
|
||||
-killall cupsd || ${TRUE}
|
||||
@${INSTALL} -d ${DESKTOPDIR}/
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${CUPS_ETCDIR}
|
||||
${INSTALL} -d ${CUPS_ETCDIR}/
|
||||
.if defined(CUPS_OVERWRITE_BASE)
|
||||
${SH} ${PKGINSTALL} placeholder POST-INSTALL overwrite
|
||||
.else
|
||||
@ -167,12 +154,10 @@ post-install:
|
||||
.endif
|
||||
.for f in cupsd.conf mime.convs mime.types
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${CUPS_ETCDIR}/${f}.N
|
||||
cd ${CUPS_ETCDIR}; if test ! -f ${f}; then ${CP} -p ${f}.N ${f}; fi
|
||||
.endfor # cupsd.conf mime.convs mime.types
|
||||
# ${FIND} ${PREFIX}/man/cat* -type l -name '*.0' -delete
|
||||
${MKDIR} ${CUPS_SPOOLDIR} ${CUPS_SPOOLDIR}/tmp
|
||||
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} ${CUPS_SPOOLDIR}
|
||||
${CHMOD} -R g+w ${CUPS_SPOOLDIR}
|
||||
@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
|
||||
cd ${CUPS_ETCDIR}/; if test ! -f ${f}; then ${CP} -p ${f}.N ${f}; fi
|
||||
.endfor
|
||||
${INSTALL} -d ${CUPS_SPOOLDIR}/tmp/
|
||||
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} ${CUPS_SPOOLDIR}/
|
||||
${CHMOD} -R g+w ${CUPS_SPOOLDIR}/
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (cups-1.2.2-source.tar.bz2) = 091de9109c9252cb37427859e90190ad
|
||||
SHA256 (cups-1.2.2-source.tar.bz2) = 16dad788e7d2060a3b59778edb1c39c2354c800c127fe6768f8005580533e776
|
||||
SIZE (cups-1.2.2-source.tar.bz2) = 3527322
|
||||
MD5 (cups-1.2.7-source.tar.bz2) = bf44783d9b46130bee9f2995e6055470
|
||||
SHA256 (cups-1.2.7-source.tar.bz2) = e7485d6b3dcbd338a2361aff66c516f8dfafc1c81ea5b01396f6ee5f365c4eb3
|
||||
SIZE (cups-1.2.7-source.tar.bz2) = 3585758
|
||||
|
@ -1,60 +0,0 @@
|
||||
--- Makefile.orig Fri May 19 14:44:29 2006
|
||||
+++ Makefile Thu Jun 29 22:07:22 2006
|
||||
@@ -99,57 +99,10 @@
|
||||
echo Installing cups-config script...
|
||||
$(INSTALL_DIR) -m 755 $(BINDIR)
|
||||
$(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config
|
||||
- if test "x$(INITDIR)" != x; then \
|
||||
- echo Installing init scripts...; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/init.d; \
|
||||
- $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc0.d; \
|
||||
- $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc2.d; \
|
||||
- $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc3.d; \
|
||||
- $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc5.d; \
|
||||
- $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \
|
||||
- fi
|
||||
- if test "x$(INITDIR)" = x -a "x$(INITDDIR)" != x; then \
|
||||
- $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \
|
||||
- if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \
|
||||
- echo Installing StartupItems files...; \
|
||||
- $(INSTALL_SCRIPT) init/PrintingServices $(BUILDROOT)$(INITDDIR)/PrintingServices; \
|
||||
- $(INSTALL_DATA) init/StartupParameters.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \
|
||||
- $(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \
|
||||
- elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
|
||||
- echo Installing LaunchDaemons configuration file...; \
|
||||
- $(INSTALL_DATA) init/org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \
|
||||
- else \
|
||||
- echo Installing RC script...; \
|
||||
- $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \
|
||||
- fi \
|
||||
- fi
|
||||
if test "x$(DBUSDIR)" != x; then \
|
||||
echo Installing cups.conf in $(DBUSDIR)...;\
|
||||
$(INSTALL_DIR) -m 755 $(BUILDROOT)$(DBUSDIR); \
|
||||
$(INSTALL_DATA) packaging/cups-dbus.conf $(BUILDROOT)$(DBUSDIR)/cups.conf; \
|
||||
- fi
|
||||
- if test "x$(XINETD)" != x; then \
|
||||
- echo Installing xinetd configuration file for cups-lpd...; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)$(XINETD); \
|
||||
- $(INSTALL_DATA) init/cups-lpd $(BUILDROOT)$(XINETD)/cups-lpd; \
|
||||
- fi
|
||||
- if test -d /usr/share/applications; then \
|
||||
- echo Installing desktop icons...; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)/usr/share/applications; \
|
||||
- $(INSTALL_DATA) desktop/cups.desktop $(BUILDROOT)/usr/share/applications; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)/usr/share/icons/hicolor/16x16/apps; \
|
||||
- $(INSTALL_DATA) desktop/cups-16.png $(BUILDROOT)/usr/share/icons/hicolor/16x16/apps/cups.png; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)/usr/share/icons/hicolor/32x32/apps; \
|
||||
- $(INSTALL_DATA) desktop/cups-32.png $(BUILDROOT)/usr/share/icons/hicolor/32x32/apps/cups.png; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)/usr/share/icons/hicolor/64x64/apps; \
|
||||
- $(INSTALL_DATA) desktop/cups-64.png $(BUILDROOT)/usr/share/icons/hicolor/64x64/apps/cups.png; \
|
||||
- $(INSTALL_DIR) -m 755 $(BUILDROOT)/usr/share/icons/hicolor/128x128/apps; \
|
||||
- $(INSTALL_DATA) desktop/cups-128.png $(BUILDROOT)/usr/share/icons/hicolor/128x128/apps/cups.png; \
|
||||
fi
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -8,26 +8,21 @@
|
||||
#
|
||||
|
||||
PORTNAME= cups
|
||||
PORTVERSION= 1.2.2
|
||||
PORTVERSION= 1.2.7
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
EXTRACT_ONLY= # empty
|
||||
|
||||
MAINTAINER= asa@agava.com
|
||||
COMMENT= The Common UNIX Printing System: Metaport to install complete system
|
||||
COMMENT= Common UNIX Printing System: Metaport to install complete system
|
||||
|
||||
RUN_DEPENDS= espgs:${PORTSDIR}/print/cups-pstoraster \
|
||||
cupsd:${PORTSDIR}/print/cups-base
|
||||
.if make(package)
|
||||
DEPENDS_TARGET="package"
|
||||
.endif # make(package)
|
||||
|
||||
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
||||
RUN_DEPENDS+= espgs:${PORTSDIR}/print/cups-pstoraster
|
||||
|
||||
NO_BUILD= true
|
||||
|
||||
do-build:
|
||||
|
||||
do-install:
|
||||
NO_BUILD= yes
|
||||
do-install: # empty
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user