summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-12-17 18:41:43 +0000
committerjlam <jlam@pkgsrc.org>2005-12-17 18:41:43 +0000
commit7644435b1b61372e1f5750bcbdd91e0650f0109d (patch)
tree28df1a39818107a6bfce201fe033fe875f7f4f7d /print
parent5db5f894e9e24ddd35c2828a524ef0702236d8e5 (diff)
downloadpkgsrc-7644435b1b61372e1f5750bcbdd91e0650f0109d.tar.gz
Initial import of print/foomatic-ppds-cups, which installs the Foomatic
PPDs collection into the CUPS PPD database.
Diffstat (limited to 'print')
-rw-r--r--print/foomatic-ppds-cups/DESCR1
-rw-r--r--print/foomatic-ppds-cups/INSTALL19
-rw-r--r--print/foomatic-ppds-cups/Makefile31
-rw-r--r--print/foomatic-ppds-cups/PLIST2
4 files changed, 53 insertions, 0 deletions
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