From 7644435b1b61372e1f5750bcbdd91e0650f0109d Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 17 Dec 2005 18:41:43 +0000 Subject: Initial import of print/foomatic-ppds-cups, which installs the Foomatic PPDs collection into the CUPS PPD database. --- print/foomatic-ppds-cups/DESCR | 1 + print/foomatic-ppds-cups/INSTALL | 19 +++++++++++++++++++ print/foomatic-ppds-cups/Makefile | 31 +++++++++++++++++++++++++++++++ print/foomatic-ppds-cups/PLIST | 2 ++ 4 files changed, 53 insertions(+) create mode 100644 print/foomatic-ppds-cups/DESCR create mode 100644 print/foomatic-ppds-cups/INSTALL create mode 100644 print/foomatic-ppds-cups/Makefile create mode 100644 print/foomatic-ppds-cups/PLIST (limited to 'print/foomatic-ppds-cups') diff --git a/print/foomatic-ppds-cups/DESCR b/print/foomatic-ppds-cups/DESCR new file mode 100644 index 00000000000..8436914b431 --- /dev/null +++ b/print/foomatic-ppds-cups/DESCR @@ -0,0 +1 @@ +This package adds Foomatic PPDs to the CUPS PPD database. diff --git a/print/foomatic-ppds-cups/INSTALL b/print/foomatic-ppds-cups/INSTALL new file mode 100644 index 00000000000..d964aa0cea1 --- /dev/null +++ b/print/foomatic-ppds-cups/INSTALL @@ -0,0 +1,19 @@ +# $NetBSD: INSTALL,v 1.1.1.1 2005/12/17 18:41:43 jlam Exp $ + +CUPS_DATADIR="@CUPS_DATADIR@" + +case ${STAGE} in +POST-INSTALL) + ${TEST} ! -d ${CUPS_DATADIR} || + ${TEST} -d ${CUPS_DATADIR}/foomatic-ppds || + { ${ECHO} "Adding Foomatic PPDs to CUPS PPD database."; + ${LN} -fs ${PKG_PREFIX}/share/foomatic/ppd \ + ${CUPS_DATADIR}/foomatic-ppds; } + + ;; + +DEINSTALL) + ${ECHO} "Removing Foomatic PPDs from CUPS PPD database." + ${RM} -f ${CUPS_DATADIR}/foomatic-ppds + ;; +esac diff --git a/print/foomatic-ppds-cups/Makefile b/print/foomatic-ppds-cups/Makefile new file mode 100644 index 00000000000..f49746c6fb9 --- /dev/null +++ b/print/foomatic-ppds-cups/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/12/17 18:41:43 jlam Exp $ + +.include "../../print/foomatic-ppds/Makefile.common" + +DISTNAME= foomatic-ppds-cups-${FOOMATIC_PPDS_VERSION} +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= jlam@pkgsrc.org +COMMENT= Foomatic PPD collection for CUPS servers + +DEPENDS+= cups>=1.0:../../print/cups +DEPENDS+= foomatic-ppds-${FOOMATIC_PPDS_VERSION}{,nb[0-9]*}:../../print/foomatic-ppds + +EXTRACT_ONLY= # empty +WRKSRC= ${WRKDIR} +NO_CHECKSUM= yes +NO_CONFIGURE= yes + +EVAL_PREFIX+= CUPS_PREFIX=cups +CUPS_DATADIR= ${CUPS_PREFIX:Q}/share/cups/model +FILES_SUBST+= CUPS_DATADIR=${CUPS_DATADIR} + +USE_PKGINSTALL= yes +DEINSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL +INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL + +do-build: # empty +do-install: # empty + +.include "../../mk/bsd.pkg.mk" diff --git a/print/foomatic-ppds-cups/PLIST b/print/foomatic-ppds-cups/PLIST new file mode 100644 index 00000000000..a20b0edd78a --- /dev/null +++ b/print/foomatic-ppds-cups/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/17 18:41:43 jlam Exp $ +@comment this plist intentionally left empty -- cgit v1.2.3