diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-12-30 00:02:30 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-12-30 00:02:30 +0800 |
commit | 0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e (patch) | |
tree | 7c821dc421e9c379b136d99cb241718f6a8e9a75 /print | |
parent | f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e (diff) | |
download | marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.tar marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.tar.gz marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.tar.bz2 marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.tar.lz marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.tar.xz marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.tar.zst marcuscom-ports-0cd7e34a6f09d7222b89eb19355eaacaa03bcd5e.zip |
Update to 1.1.16
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13325 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'print')
11 files changed, 348 insertions, 0 deletions
diff --git a/print/system-config-printer/Makefile b/print/system-config-printer/Makefile new file mode 100644 index 000000000..d600db916 --- /dev/null +++ b/print/system-config-printer/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: system-config-printer +# Date created: 2008-03-20 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= system-config-printer +PORTVERSION= 1.1.16 +CATEGORIES= print gnome +MASTER_SITES= http://cyberelk.net/tim/data/${PORTNAME}/${PORTVERSION:R}/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= CUPS configuration Gtk+2.0 GUI + +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \ + ${LOCALBASE}/libdata/pkgconfig/notify-python.pc:${PORTSDIR}/devel/py-notify \ + xmlproc_parse:${PORTSDIR}/textproc/py-xml \ + ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \ + xmlto:${PORTSDIR}/textproc/xmlto \ + desktop-file-install:${PORTSDIR}/devel/desktop-file-utils +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \ + ${LOCALBASE}/libdata/pkgconfig/notify-python.pc:${PORTSDIR}/devel/py-notify \ + xmlproc_parse:${PORTSDIR}/textproc/py-xml \ + ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus + +USE_BZIP2= yes +USE_PYTHON= 2.6+ +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_GETTEXT= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +USE_GNOME= pygtk2 +MAN1= system-config-printer-applet.1 system-config-printer.1 +PLIST_SUB= PYTHON_VER=${PYTHON_VER} + +post-patch: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \ + 's|%%LOCALBASE%%|${LOCALBASE}|g; s|%%PREFIX%%|${PREFIX}|g' + +.include <bsd.port.mk> diff --git a/print/system-config-printer/distinfo b/print/system-config-printer/distinfo new file mode 100644 index 000000000..166a1797f --- /dev/null +++ b/print/system-config-printer/distinfo @@ -0,0 +1,3 @@ +MD5 (system-config-printer-1.1.16.tar.bz2) = 22394a052fa730a890f6bfea1aec0aa2 +SHA256 (system-config-printer-1.1.16.tar.bz2) = 176b63ee6af2208313469192eb34eb12b41fe8b890a18c8a5ab693010a8e785d +SIZE (system-config-printer-1.1.16.tar.bz2) = 1036604 diff --git a/print/system-config-printer/files/patch-applet.py b/print/system-config-printer/files/patch-applet.py new file mode 100644 index 000000000..d21bb2a2e --- /dev/null +++ b/print/system-config-printer/files/patch-applet.py @@ -0,0 +1,20 @@ +--- applet.py.orig 2009-12-22 09:44:19.000000000 -0500 ++++ applet.py 2009-12-29 00:06:27.000000000 -0500 +@@ -43,7 +43,7 @@ + os.environ['LC_ALL'] = 'C' + locale.setlocale (locale.LC_ALL, "") + +-APPDIR="/usr/share/system-config-printer" ++APPDIR="%%PREFIX%%/share/system-config-printer" + DOMAIN="system-config-printer" + ICON="printer" + SEARCHING_ICON="document-print-preview" +@@ -234,7 +234,7 @@ + pid = os.fork () + if pid == 0: + # Child. +- cmd = "/usr/bin/system-config-printer" ++ cmd = "%%PREFIX%%/bin/system-config-printer" + argv.insert (0, cmd) + os.execvp (cmd, argv) + sys.exit (1) diff --git a/print/system-config-printer/files/patch-cupshelpers_cupshelpers.py b/print/system-config-printer/files/patch-cupshelpers_cupshelpers.py new file mode 100644 index 000000000..079c395ad --- /dev/null +++ b/print/system-config-printer/files/patch-cupshelpers_cupshelpers.py @@ -0,0 +1,20 @@ +--- cupshelpers/cupshelpers.py.orig 2009-12-22 09:44:19.000000000 -0500 ++++ cupshelpers/cupshelpers.py 2009-12-29 00:08:26.000000000 -0500 +@@ -663,7 +663,7 @@ + + # First, a local function. How to check that something exists + # in a path: +- def pathcheck (name, path="/usr/bin:/bin"): ++ def pathcheck (name, path="%%LOCALBASE%%/bin:%%PREFIX%%/bin:/usr/bin:/bin"): + if name == "-": + # A filter of "-" means that no filter is required, + # i.e. the device accepts the given format as-is. +@@ -765,7 +765,7 @@ + continue + + exepath = pathcheck (exe, +- "/usr/lib/cups/filter:" ++ "%%LOCALBASE%%/libexec/cups/filter:" + "/usr/lib64/cups/filter") + + if exe and not exepath: diff --git a/print/system-config-printer/files/patch-my-default-printer b/print/system-config-printer/files/patch-my-default-printer new file mode 100644 index 000000000..d5678c0a9 --- /dev/null +++ b/print/system-config-printer/files/patch-my-default-printer @@ -0,0 +1,6 @@ +--- my-default-printer.orig 2008-03-20 11:53:08.000000000 -0400 ++++ my-default-printer 2008-03-20 11:53:17.000000000 -0400 +@@ -1,2 +1,2 @@ + #!/bin/sh +-exec /usr/share/system-config-printer/my-default-printer.py "$@" ++exec %%PREFIX%%/share/system-config-printer/my-default-printer.py "$@" diff --git a/print/system-config-printer/files/patch-system-config-printer b/print/system-config-printer/files/patch-system-config-printer new file mode 100644 index 000000000..17f1bf5fb --- /dev/null +++ b/print/system-config-printer/files/patch-system-config-printer @@ -0,0 +1,6 @@ +--- system-config-printer.orig 2008-03-20 11:56:46.000000000 -0400 ++++ system-config-printer 2008-03-20 11:56:58.000000000 -0400 +@@ -1,2 +1,2 @@ + #!/bin/sh +-exec /usr/share/system-config-printer/system-config-printer.py "$@" ++exec %%PREFIX%%/share/system-config-printer/system-config-printer.py "$@" diff --git a/print/system-config-printer/files/patch-system-config-printer-applet b/print/system-config-printer/files/patch-system-config-printer-applet new file mode 100644 index 000000000..b9d8e3125 --- /dev/null +++ b/print/system-config-printer/files/patch-system-config-printer-applet @@ -0,0 +1,6 @@ +--- system-config-printer-applet.orig 2008-03-20 11:57:22.000000000 -0400 ++++ system-config-printer-applet 2008-03-20 11:57:32.000000000 -0400 +@@ -1,2 +1,2 @@ + #!/bin/sh +-exec /usr/share/system-config-printer/applet.py "$@" ++exec %%PREFIX%%/share/system-config-printer/applet.py "$@" diff --git a/print/system-config-printer/files/patch-system-config-printer.py b/print/system-config-printer/files/patch-system-config-printer.py new file mode 100644 index 000000000..c0129a32c --- /dev/null +++ b/print/system-config-printer/files/patch-system-config-printer.py @@ -0,0 +1,43 @@ +--- system-config-printer.py.orig 2009-12-22 09:44:19.000000000 -0500 ++++ system-config-printer.py 2009-12-29 00:35:54.000000000 -0500 +@@ -4344,7 +4344,7 @@ + if may_be_ps: + debugprint ("Printer might support PostScript") + try: +- os.stat ("/usr/share/cups/model/foomatic-db-ppds") ++ os.stat ("%%LOCALBASE%%/share/cups/model/foomatic-db-ppds") + debugprint ("foomatic-db-ppds already installed") + except OSError: + debugprint ("foomatic-db-ppds not yet installed") +@@ -4892,11 +4892,11 @@ + # Problem executing command. + return True # assume plugin not required + else: +- if glob.glob("/usr/share/hplip/data/plugin/*%s*plugin*" % ++ if glob.glob("%%LOCALBASE%%share/hplip/data/plugin/*%s*plugin*" % + hplip_version): + if hplip_version.startswith("2"): + try: +- f = open('/etc/hp/hplip.conf', 'r') ++ f = open('%%LOCALBASE%%/etc/hp/hplip.conf', 'r') + for line in f: + if line.strip ().startswith("plugin") and \ + line.strip ().endswith("1"): +@@ -5082,7 +5082,7 @@ + # Try to get make and model via SNMP + if host: + os.environ["HOST"] = host +- cmd = '/usr/lib/cups/backend/snmp "${HOST}"' ++ cmd = '%%LOCALBASE%%/libexec/cups/backend/snmp "${HOST}"' + debugprint (host + ": " + cmd) + stdout = None + try: +@@ -6621,7 +6621,7 @@ + try: + # We want this to be in the current natural language, + # so we intentionally don't set LC_ALL=C here. +- p = subprocess.Popen (['/usr/bin/cupstestppd', ++ p = subprocess.Popen (['%%LOCALBASE%%/bin/cupstestppd', + '-rvv', filename], + stdin=file("/dev/null"), + stdout=subprocess.PIPE, diff --git a/print/system-config-printer/files/patch-troubleshoot_CheckUSBPermissions.py b/print/system-config-printer/files/patch-troubleshoot_CheckUSBPermissions.py new file mode 100644 index 000000000..8fc60a760 --- /dev/null +++ b/print/system-config-printer/files/patch-troubleshoot_CheckUSBPermissions.py @@ -0,0 +1,11 @@ +--- troubleshoot/CheckUSBPermissions.py.orig 2008-07-26 13:36:20.440361271 -0500 ++++ troubleshoot/CheckUSBPermissions.py 2008-07-26 13:36:36.255172372 -0500 +@@ -51,7 +51,7 @@ + if not os.access (LSUSB, os.X_OK): + return False + +- GETFACL = "/usr/bin/getfacl" ++ GETFACL = "/bin/getfacl" + if not os.access (GETFACL, os.X_OK): + return False + diff --git a/print/system-config-printer/pkg-descr b/print/system-config-printer/pkg-descr new file mode 100644 index 000000000..3dcfd9461 --- /dev/null +++ b/print/system-config-printer/pkg-descr @@ -0,0 +1,7 @@ +CUPS configuration Gtk+2.0 GUI + +Configures a CUPS server. It uses the CUPS API (bound to Python with pycups) +to do this. The communication with the server is performed using IPP. As a +result, it is equally able to configure a remote CUPS server as a local one. + +WWW: http://cyberelk.net/tim/software/system-config-printer/ diff --git a/print/system-config-printer/pkg-plist b/print/system-config-printer/pkg-plist new file mode 100644 index 000000000..4abf8b0a7 --- /dev/null +++ b/print/system-config-printer/pkg-plist @@ -0,0 +1,184 @@ +bin/my-default-printer +bin/system-config-printer +bin/system-config-printer-applet +etc/dbus-1/system.d/newprinternotification.conf +etc/xdg/autostart/print-applet.desktop +%%PYTHON_SITELIBDIR%%/cupshelpers-1.0-py%PYTHON_VER%%.egg-info +%%PYTHON_SITELIBDIR%%/cupshelpers/__init__.py +%%PYTHON_SITELIBDIR%%/cupshelpers/__init__.pyc +%%PYTHON_SITELIBDIR%%/cupshelpers/cupshelpers.py +%%PYTHON_SITELIBDIR%%/cupshelpers/cupshelpers.pyc +%%PYTHON_SITELIBDIR%%/cupshelpers/openprinting.py +%%PYTHON_SITELIBDIR%%/cupshelpers/openprinting.pyc +%%PYTHON_SITELIBDIR%%/cupshelpers/ppds.py +%%PYTHON_SITELIBDIR%%/cupshelpers/ppds.pyc +share/applications/manage-print-jobs.desktop +share/applications/my-default-printer.desktop +share/applications/system-config-printer.desktop +share/locale/ar/LC_MESSAGES/system-config-printer.mo +share/locale/as/LC_MESSAGES/system-config-printer.mo +share/locale/bg/LC_MESSAGES/system-config-printer.mo +share/locale/bn/LC_MESSAGES/system-config-printer.mo +share/locale/bn_IN/LC_MESSAGES/system-config-printer.mo +share/locale/bs/LC_MESSAGES/system-config-printer.mo +share/locale/ca/LC_MESSAGES/system-config-printer.mo +share/locale/cs/LC_MESSAGES/system-config-printer.mo +share/locale/cy/LC_MESSAGES/system-config-printer.mo +share/locale/da/LC_MESSAGES/system-config-printer.mo +share/locale/de/LC_MESSAGES/system-config-printer.mo +share/locale/el/LC_MESSAGES/system-config-printer.mo +share/locale/en_GB/LC_MESSAGES/system-config-printer.mo +share/locale/es/LC_MESSAGES/system-config-printer.mo +share/locale/et/LC_MESSAGES/system-config-printer.mo +share/locale/fa/LC_MESSAGES/system-config-printer.mo +share/locale/fi/LC_MESSAGES/system-config-printer.mo +share/locale/fr/LC_MESSAGES/system-config-printer.mo +share/locale/gu/LC_MESSAGES/system-config-printer.mo +share/locale/he/LC_MESSAGES/system-config-printer.mo +share/locale/hi/LC_MESSAGES/system-config-printer.mo +share/locale/hr/LC_MESSAGES/system-config-printer.mo +share/locale/hu/LC_MESSAGES/system-config-printer.mo +share/locale/hy/LC_MESSAGES/system-config-printer.mo +share/locale/id/LC_MESSAGES/system-config-printer.mo +share/locale/is/LC_MESSAGES/system-config-printer.mo +share/locale/it/LC_MESSAGES/system-config-printer.mo +share/locale/ja/LC_MESSAGES/system-config-printer.mo +share/locale/ka/LC_MESSAGES/system-config-printer.mo +share/locale/kn/LC_MESSAGES/system-config-printer.mo +share/locale/ko/LC_MESSAGES/system-config-printer.mo +share/locale/lo/LC_MESSAGES/system-config-printer.mo +share/locale/lv/LC_MESSAGES/system-config-printer.mo +share/locale/mai/LC_MESSAGES/system-config-printer.mo +share/locale/mk/LC_MESSAGES/system-config-printer.mo +share/locale/ml/LC_MESSAGES/system-config-printer.mo +share/locale/mr/LC_MESSAGES/system-config-printer.mo +share/locale/ms/LC_MESSAGES/system-config-printer.mo +share/locale/my/LC_MESSAGES/system-config-printer.mo +share/locale/nb/LC_MESSAGES/system-config-printer.mo +share/locale/nl/LC_MESSAGES/system-config-printer.mo +share/locale/nn/LC_MESSAGES/system-config-printer.mo +share/locale/or/LC_MESSAGES/system-config-printer.mo +share/locale/pa/LC_MESSAGES/system-config-printer.mo +share/locale/pl/LC_MESSAGES/system-config-printer.mo +share/locale/pt/LC_MESSAGES/system-config-printer.mo +share/locale/pt_BR/LC_MESSAGES/system-config-printer.mo +share/locale/ro/LC_MESSAGES/system-config-printer.mo +share/locale/ru/LC_MESSAGES/system-config-printer.mo +share/locale/si/LC_MESSAGES/system-config-printer.mo +share/locale/sk/LC_MESSAGES/system-config-printer.mo +share/locale/sl/LC_MESSAGES/system-config-printer.mo +share/locale/sr/LC_MESSAGES/system-config-printer.mo +share/locale/sr@latin/LC_MESSAGES/system-config-printer.mo +share/locale/sv/LC_MESSAGES/system-config-printer.mo +share/locale/ta/LC_MESSAGES/system-config-printer.mo +share/locale/te/LC_MESSAGES/system-config-printer.mo +share/locale/th/LC_MESSAGES/system-config-printer.mo +share/locale/tr/LC_MESSAGES/system-config-printer.mo +share/locale/uk/LC_MESSAGES/system-config-printer.mo +share/locale/vi/LC_MESSAGES/system-config-printer.mo +share/locale/zh_CN/LC_MESSAGES/system-config-printer.mo +share/locale/zh_TW/LC_MESSAGES/system-config-printer.mo +%%DATADIR%%/AdvancedServerSettings.py +%%DATADIR%%/GroupsPane.py +%%DATADIR%%/GroupsPaneModel.py +%%DATADIR%%/HIG.py +%%DATADIR%%/PhysicalDevice.py +%%DATADIR%%/SearchCriterion.py +%%DATADIR%%/ToolbarSearchEntry.py +%%DATADIR%%/XmlHelper.py +%%DATADIR%%/applet.py +%%DATADIR%%/asyncconn.py +%%DATADIR%%/asyncipp.py +%%DATADIR%%/asyncpk0.py +%%DATADIR%%/asyncpk1.py +%%DATADIR%%/authconn.py +%%DATADIR%%/config.py +%%DATADIR%%/cupspk.py +%%DATADIR%%/debug.py +%%DATADIR%%/errordialogs.py +%%DATADIR%%/firewall.py +%%DATADIR%%/glade.py +%%DATADIR%%/glade/AboutDialog.glade +%%DATADIR%%/glade/ConnectDialog.glade +%%DATADIR%%/glade/ConnectingDialog.glade +%%DATADIR%%/glade/InstallDialog.glade +%%DATADIR%%/glade/JobsWindow.glade +%%DATADIR%%/glade/NewPrinterName.glade +%%DATADIR%%/glade/NewPrinterWindow.glade +%%DATADIR%%/glade/PrinterPropertiesDialog.glade +%%DATADIR%%/glade/PrintersWindow.glade +%%DATADIR%%/glade/SMBBrowseDialog.glade +%%DATADIR%%/glade/ServerSettingsDialog.glade +%%DATADIR%%/glade/WaitWindow.glade +%%DATADIR%%/glade/statusicon_popupmenu.glade +%%DATADIR%%/gtk_label_autowrap.py +%%DATADIR%%/gtkinklevel.py +%%DATADIR%%/gtkspinner.py +%%DATADIR%%/icons/i-network-printer.png +%%DATADIR%%/installpackage.py +%%DATADIR%%/jobviewer.py +%%DATADIR%%/monitor.py +%%DATADIR%%/my-default-printer.py +%%DATADIR%%/options.py +%%DATADIR%%/optionwidgets.py +%%DATADIR%%/ppdippstr.py +%%DATADIR%%/probe_printer.py +%%DATADIR%%/pysmb.py +%%DATADIR%%/smburi.py +%%DATADIR%%/statereason.py +%%DATADIR%%/system-config-printer.py +%%DATADIR%%/timedops.py +%%DATADIR%%/troubleshoot/CheckLocalServerPublishing.py +%%DATADIR%%/troubleshoot/CheckNetworkServerSanity.py +%%DATADIR%%/troubleshoot/CheckPPDSanity.py +%%DATADIR%%/troubleshoot/CheckPrinterSanity.py +%%DATADIR%%/troubleshoot/CheckUSBPermissions.py +%%DATADIR%%/troubleshoot/ChooseNetworkPrinter.py +%%DATADIR%%/troubleshoot/ChoosePrinter.py +%%DATADIR%%/troubleshoot/DeviceListed.py +%%DATADIR%%/troubleshoot/ErrorLogCheckpoint.py +%%DATADIR%%/troubleshoot/ErrorLogFetch.py +%%DATADIR%%/troubleshoot/ErrorLogParse.py +%%DATADIR%%/troubleshoot/LocalOrRemote.py +%%DATADIR%%/troubleshoot/Locale.py +%%DATADIR%%/troubleshoot/NetworkCUPSPrinterShared.py +%%DATADIR%%/troubleshoot/PrintTestPage.py +%%DATADIR%%/troubleshoot/PrinterStateReasons.py +%%DATADIR%%/troubleshoot/QueueNotEnabled.py +%%DATADIR%%/troubleshoot/QueueRejectingJobs.py +%%DATADIR%%/troubleshoot/RemoteAddress.py +%%DATADIR%%/troubleshoot/SchedulerNotRunning.py +%%DATADIR%%/troubleshoot/ServerFirewalled.py +%%DATADIR%%/troubleshoot/Shrug.py +%%DATADIR%%/troubleshoot/Welcome.py +%%DATADIR%%/troubleshoot/__init__.py +%%DATADIR%%/troubleshoot/base.py +%%DATADIR%%/userdefault.py +@dirrm %%DATADIR%%/troubleshoot +@dirrm %%DATADIR%%/icons +@dirrm %%DATADIR%%/glade +@dirrm %%DATADIR%% +@dirrmtry share/locale/te/LC_MESSAGES +@dirrmtry share/locale/te +@dirrmtry share/locale/sr@latin/LC_MESSAGES +@dirrmtry share/locale/sr@latin +@dirrmtry share/locale/si/LC_MESSAGES +@dirrmtry share/locale/si +@dirrmtry share/locale/my/LC_MESSAGES +@dirrmtry share/locale/my +@dirrmtry share/locale/mr/LC_MESSAGES +@dirrmtry share/locale/mr +@dirrmtry share/locale/mai/LC_MESSAGES +@dirrmtry share/locale/mai +@dirrmtry share/locale/lo/LC_MESSAGES +@dirrmtry share/locale/lo +@dirrmtry share/locale/hy/LC_MESSAGES +@dirrmtry share/locale/hy +@dirrmtry share/locale/bn_IN/LC_MESSAGES +@dirrmtry share/locale/bn_IN +@dirrmtry share/locale/as/LC_MESSAGES +@dirrmtry share/locale/as +@dirrmtry share/applications +@dirrm %%PYTHON_SITELIBDIR%%/cupshelpers +@dirrmtry etc/xdg/autostart +@dirrmtry etc/xdg |