aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/cups/cups-1.6.2-autotoolsupdate.patch.xzbin0 -> 5716 bytes
-rw-r--r--print/cups/cups-1.6.2-desktopfile.patch.xzbin0 -> 692 bytes
-rw-r--r--print/cups/cups-1.6.2-logrotate.patch.xzbin0 -> 308 bytes
-rw-r--r--print/cups/cups-1.6.2-noexportssllibs.patch.xzbin0 -> 260 bytes
-rw-r--r--print/cups/cups-1.6.2-nogcrypt.patch.xzbin0 -> 668 bytes
-rw-r--r--print/cups/cups-1.6.2-nomanlinks.patch.xzbin0 -> 348 bytes
-rw-r--r--print/cups/cups-1.6.2-nomanz.patch.xzbin0 -> 308 bytes
-rw-r--r--print/cups/cups-1.6.2-pam.patch.xzbin0 -> 224 bytes
-rw-r--r--print/cups/cups-1.6.2-paths.patch.xzbin0 -> 460 bytes
-rw-r--r--print/cups/cups-1.6.2-systemdsocket.patch.xzbin0 -> 3716 bytes
-rw-r--r--print/cups/cups-filters-1.0.34-fontconfdir.patch.xzbin0 -> 336 bytes
-rw-r--r--print/cups/cups-filters-1.0.34-systemd.patch.xzbin0 -> 344 bytes
-rwxr-xr-xprint/cups/cups.build227
-rw-r--r--print/cups/foomatic-filters-4.0.17-nobailingout.patch.xzbin0 -> 464 bytes
-rw-r--r--print/ghostscript/ghostscript-9.06-cjk.patch.xzbin0 -> 1672 bytes
-rw-r--r--print/ghostscript/ghostscript-9.06-gsdatadir.patch.xzbin0 -> 380 bytes
-rw-r--r--print/ghostscript/ghostscript-9.06-gssharedir.patch.xzbin0 -> 440 bytes
-rw-r--r--print/ghostscript/ghostscript-9.06-ijsautogen.patch.xzbin0 -> 224912 bytes
-rwxr-xr-xprint/ghostscript/ghostscript.build102
-rw-r--r--print/hplip/hplip-3.13.5-cups161fix.patch.xzbin0 -> 2632 bytes
-rw-r--r--print/hplip/hplip-3.13.5-desktopfile.patch.xzbin0 -> 552 bytes
-rw-r--r--print/hplip/hplip-3.13.5-libnotify.patch.xzbin0 -> 352 bytes
-rw-r--r--print/hplip/hplip-3.13.5-typo.patch.xzbin0 -> 396 bytes
-rwxr-xr-xprint/hplip/hplip.build123
24 files changed, 452 insertions, 0 deletions
diff --git a/print/cups/cups-1.6.2-autotoolsupdate.patch.xz b/print/cups/cups-1.6.2-autotoolsupdate.patch.xz
new file mode 100644
index 0000000..b834978
--- /dev/null
+++ b/print/cups/cups-1.6.2-autotoolsupdate.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-desktopfile.patch.xz b/print/cups/cups-1.6.2-desktopfile.patch.xz
new file mode 100644
index 0000000..3924b5e
--- /dev/null
+++ b/print/cups/cups-1.6.2-desktopfile.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-logrotate.patch.xz b/print/cups/cups-1.6.2-logrotate.patch.xz
new file mode 100644
index 0000000..85a5656
--- /dev/null
+++ b/print/cups/cups-1.6.2-logrotate.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-noexportssllibs.patch.xz b/print/cups/cups-1.6.2-noexportssllibs.patch.xz
new file mode 100644
index 0000000..7ea70fd
--- /dev/null
+++ b/print/cups/cups-1.6.2-noexportssllibs.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-nogcrypt.patch.xz b/print/cups/cups-1.6.2-nogcrypt.patch.xz
new file mode 100644
index 0000000..7bc8ed6
--- /dev/null
+++ b/print/cups/cups-1.6.2-nogcrypt.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-nomanlinks.patch.xz b/print/cups/cups-1.6.2-nomanlinks.patch.xz
new file mode 100644
index 0000000..2716397
--- /dev/null
+++ b/print/cups/cups-1.6.2-nomanlinks.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-nomanz.patch.xz b/print/cups/cups-1.6.2-nomanz.patch.xz
new file mode 100644
index 0000000..b066197
--- /dev/null
+++ b/print/cups/cups-1.6.2-nomanz.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-pam.patch.xz b/print/cups/cups-1.6.2-pam.patch.xz
new file mode 100644
index 0000000..ecbf5dc
--- /dev/null
+++ b/print/cups/cups-1.6.2-pam.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-paths.patch.xz b/print/cups/cups-1.6.2-paths.patch.xz
new file mode 100644
index 0000000..5f3e55e
--- /dev/null
+++ b/print/cups/cups-1.6.2-paths.patch.xz
Binary files differ
diff --git a/print/cups/cups-1.6.2-systemdsocket.patch.xz b/print/cups/cups-1.6.2-systemdsocket.patch.xz
new file mode 100644
index 0000000..a8f4931
--- /dev/null
+++ b/print/cups/cups-1.6.2-systemdsocket.patch.xz
Binary files differ
diff --git a/print/cups/cups-filters-1.0.34-fontconfdir.patch.xz b/print/cups/cups-filters-1.0.34-fontconfdir.patch.xz
new file mode 100644
index 0000000..9c0d395
--- /dev/null
+++ b/print/cups/cups-filters-1.0.34-fontconfdir.patch.xz
Binary files differ
diff --git a/print/cups/cups-filters-1.0.34-systemd.patch.xz b/print/cups/cups-filters-1.0.34-systemd.patch.xz
new file mode 100644
index 0000000..d602846
--- /dev/null
+++ b/print/cups/cups-filters-1.0.34-systemd.patch.xz
Binary files differ
diff --git a/print/cups/cups.build b/print/cups/cups.build
new file mode 100755
index 0000000..373c43a
--- /dev/null
+++ b/print/cups/cups.build
@@ -0,0 +1,227 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=cups
+VERSION=1.6.2
+BUILD=2
+DEPENDS=('gnutls >= 3.2.1-1' 'avahi >= 0.6.31-1' 'libpng >= 1.5.14-1' 'libtiff >= 4.0.3-1')
+OPTDEPENDS=('usb >= 1.0.15-1' 'qpdf >= 4.0.1-1' 'poppler >= 0.22.4-1' 'freetype >= 2.4.12-1' 'fontconfig >= 2.10.91-1')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: CUPS (Common UNIX Printing System)
+${NAME}:
+${NAME}: The Common UNIX Printing System provides a portable printing layer
+${NAME}: for UNIX(R)-like operating systems. It uses the Internet Printing
+${NAME}: Protocol ("IPP") as the basis for managing print jobs and queues. The
+${NAME}: CUPS package includes System V and Berkeley command-line interfaces,
+${NAME}: a PostScript RIP package for supporting non-PostScript printer
+${NAME}: drivers, and tools for creating additional printer drivers and other
+${NAME}: CUPS services.
+${NAME}:
+${NAME}: Homepage: http://www.cups.org
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+
+config() {
+ NEW="\$1"
+ OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r \$OLD ]; then
+ mv \$NEW \$OLD
+ elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm \$NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/dbus-1/system.d/cups.conf.new
+config etc/cups/printers.conf.new
+config etc/cups/classes.conf.new
+config etc/cups/subscriptions.conf.new
+config etc/cups/client.conf.new
+config etc/cups/snmp.conf.new
+config etc/cups/cupsd.conf.new
+config etc/cups/cups-files.conf.new
+config etc/cups/cups-browsed.conf.new
+config etc/foomatic/filter.conf.new
+
+# Leave any new rc.cups with the same permissions as the old one:
+# This is a kludge, but it's because there's no --reference option
+# on busybox's 'chmod':
+if [ -e etc/rc.d/rc.cups ]; then
+ if [ -x etc/rc.d/rc.cups ]; then
+ chmod 755 etc/rc.d/rc.cups.new
+ else
+ chmod 644 etc/rc.d/rc.cups.new
+ fi
+fi
+
+# Then config() it:
+config etc/rc.d/rc.cups.new
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=http://ftp.easysw.com/pub/cups/${SRCVERS[0]}/${SRCNAME[0]}-${SRCVERS[0]}-source.tar.bz2
+
+build0()
+{
+sed -i "s|@systemdsystemunitdir@|${SYS_DIR[systemdsystemunitdir]}|g" Makedefs.in
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --without-php \
+ --with-optim="${FLAGS}" \
+ --with-logdir="${SYS_DIR[var]}/log/cups" \
+ --with-docdir="${SYS_DIR[html]}/cups" \
+ --with-dbusdir="${SYS_DIR[etc]}/dbus-1" \
+ --with-systemdsystemunitdir="${SYS_DIR[systemdsystemunitdir]}" \
+ --enable-pam=no \
+ --enable-ssl=yes \
+ --enable-dbus \
+ --enable-gnutls \
+ --enable-threads \
+ --enable-avahi \
+ --enable-libusb \
+ --enable-raw-printing
+#FIXME: PAM
+make ${JOBS}
+make install BUILDROOT="${PKG}"
+doc CREDITS.txt
+changelog CHANGES.txt
+license LICENSE.txt
+# Make these directories again to remove unneeded perms
+install.dir ${PKG}${SYS_DIR[etc]}/cups
+install.dir ${PKG}${SYS_DIR[var]}/spool
+#install.dir ${PKG}${SYS_DIR[etc]}/pam.d
+#install.dat cups.pam ${PKG}${SYS_DIR[etc]}/pam.d/cups
+install.dir ${PKG}${SYS_DIR[etc]}/logrotate.d
+install.dat cups.logrotate ${PKG}${SYS_DIR[etc]}/logrotate.d/cups
+# Install some more configuration files that will get filled by cupsd
+echo "ServerName /run/cups/cups.sock" > ${PKG}${SYS_DIR[etc]}/cups/client.conf.new
+touch ${PKG}${SYS_DIR[etc]}/cups/{printers,classes,subscriptions}.conf.new
+chgrp lp ${PKG}${SYS_DIR[etc]}/cups/{printers,classes,subscriptions,client}.conf.new
+(
+ cd ${PKG}${SYS_DIR[lib]}/exec/cups/backend
+ if [ ! -e smb ]; then
+ ln -sf ${SYS_DIR[bin]}/smbspool smb
+ fi
+)
+mv \
+ ${PKG}${SYS_DIR[etc]}/rc.d/init.d/cups \
+ ${PKG}${SYS_DIR[etc]}/rc.d/rc.cups.new
+mv \
+ ${PKG}${SYS_DIR[etc]}/dbus-1/system.d/cups.conf \
+ ${PKG}${SYS_DIR[etc]}/dbus-1/system.d/cups.conf.new
+mv \
+ ${PKG}${SYS_DIR[etc]}/cups/cups-files.conf \
+ ${PKG}${SYS_DIR[etc]}/cups/cups-files.conf.new
+mv \
+ ${PKG}${SYS_DIR[etc]}/cups/cupsd.conf \
+ ${PKG}${SYS_DIR[etc]}/cups/cupsd.conf.new
+mv \
+ ${PKG}${SYS_DIR[etc]}/cups/snmp.conf \
+ ${PKG}${SYS_DIR[etc]}/cups/snmp.conf.new
+rm -rf \
+ ${PKG}${SYS_DIR[etc]}/rc.d/{init.d,rc{0,2,3,5}.d} \
+ ${PKG}${SYS_DIR[share]}/cups/{banners,data} \
+ ${PKG}${SYS_DIR[share]}/cups/ipptool/*.{ps,pdf.jpg} \
+ ${PKG}/run
+}
+
+SRCNAME[1]=cups-filters
+SRCVERS[1]=1.0.34
+SRCPACK[1]=http://www.openprinting.org/download/cups-filters/${SRCNAME[1]}-${SRCVERS[1]}.tar.xz
+
+build1()
+{
+sed -i 's|$(libdir)/pkgconfig|$(datarootdir)/pkgconfig|g' Makefile.in
+CPPFLAGS="-I${PKG}${SYS_DIR[include]}" \
+LDFLAGS="-L${PKG}${SYS_DIR[lib]}" \
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --disable-dependency-tracking \
+ --disable-silent-rules \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --with-cups-config="${PKG}${SYS_DIR[bin]}/cups-config" \
+ --with-fontdir="${SYS_DIR[share]}/fonts/config" \
+ --with-rcdir=no \
+ --enable-avahi
+make ${JOBS} V=1
+make install DESTDIR="${PKG}"
+doc AUTHORS
+license COPYING
+changelog NEWS
+install.dir ${PKG}${SYS_DIR[etc]}/fonts.d
+install.dir ${PKG}${SYS_DIR[systemdsystemunitdir]}
+install.dat cups-browsed.service ${PKG}${SYS_DIR[systemdsystemunitdir]}
+mv \
+ ${PKG}${SYS_DIR[etc]}/cups/cups-browsed.conf \
+ ${PKG}${SYS_DIR[etc]}/cups/cups-browsed.conf.new
+# Compress some driver files, adopted from Fedora
+find ${PKG}${SYS_DIR[share]}/ppd -name "*.ppd" | xargs gzip -n9f
+# Use this trick instead of installing cups-samba
+(
+ cd ${PKG}${SYS_DIR[etc]}/fonts.d
+ ln -sf ${SYS_DIR[share]}/fonts/config/99pdftoopvp.conf
+)
+rm -rf \
+ ${PKG}${SYS_DIR[doc]}/cups-filters
+}
+
+SRCNAME[2]=foomatic-filters
+SRCVERS[2]=4.0.17
+SRCPACK[2]=http://www.openprinting.org/download/foomatic/${SRCNAME[2]}-${SRCVERS[2]}.tar.gz
+SRCCOPY[2]="GPL2"
+
+build2()
+{
+export CUPS_SERVERBIN="${SYS_DIR[lib]}/exec/cups"
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --disable-dependency-tracking \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}"
+make ${JOBS}
+make install-main install-cups DESTDIR="${PKG}"
+changelog ChangeLog
+mv \
+ ${PKG}${SYS_DIR[etc]}/foomatic/filter.conf \
+ ${PKG}${SYS_DIR[etc]}/foomatic/filter.conf.new
+}
diff --git a/print/cups/foomatic-filters-4.0.17-nobailingout.patch.xz b/print/cups/foomatic-filters-4.0.17-nobailingout.patch.xz
new file mode 100644
index 0000000..7c6e122
--- /dev/null
+++ b/print/cups/foomatic-filters-4.0.17-nobailingout.patch.xz
Binary files differ
diff --git a/print/ghostscript/ghostscript-9.06-cjk.patch.xz b/print/ghostscript/ghostscript-9.06-cjk.patch.xz
new file mode 100644
index 0000000..75d9739
--- /dev/null
+++ b/print/ghostscript/ghostscript-9.06-cjk.patch.xz
Binary files differ
diff --git a/print/ghostscript/ghostscript-9.06-gsdatadir.patch.xz b/print/ghostscript/ghostscript-9.06-gsdatadir.patch.xz
new file mode 100644
index 0000000..2f108b2
--- /dev/null
+++ b/print/ghostscript/ghostscript-9.06-gsdatadir.patch.xz
Binary files differ
diff --git a/print/ghostscript/ghostscript-9.06-gssharedir.patch.xz b/print/ghostscript/ghostscript-9.06-gssharedir.patch.xz
new file mode 100644
index 0000000..ee6ddd9
--- /dev/null
+++ b/print/ghostscript/ghostscript-9.06-gssharedir.patch.xz
Binary files differ
diff --git a/print/ghostscript/ghostscript-9.06-ijsautogen.patch.xz b/print/ghostscript/ghostscript-9.06-ijsautogen.patch.xz
new file mode 100644
index 0000000..f4ab8bd
--- /dev/null
+++ b/print/ghostscript/ghostscript-9.06-ijsautogen.patch.xz
Binary files differ
diff --git a/print/ghostscript/ghostscript.build b/print/ghostscript/ghostscript.build
new file mode 100755
index 0000000..0e2cea0
--- /dev/null
+++ b/print/ghostscript/ghostscript.build
@@ -0,0 +1,102 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=ghostscript
+VERSION=9.06
+BUILD=1
+DEPENDS=('cups >= 1.6.1-1' 'libjpeg >= 1.2.0-1' 'libpng >= 1.5.14-1' 'libtiff >= 4.0.3-1' 'jasper >= 1.900.1-1' 'liblcms >= 2.4-1' 'fontconfig >= 2.10.91-1' 'freetype >= 2.4.11-1' 'expat >= 2.1.0-1')
+OPTDEPENDS=('gtk+ >= 3.6.4-1' 'xorg_libs >= 7.7-3')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: ghostscript (GPL Ghostscript)
+${NAME}:
+${NAME}: GPL Ghostscript is an interpreter of Adobe Systems' PostScript(tm)
+${NAME}: and Portable Document Format (PDF) languages. Ghostscript is an
+${NAME}: essential part of the printing subsystem, taking PostScript output
+${NAME}: from applications and converting it into an appropriate printer or
+${NAME}: display format. Ghostscript supports many printers directly, and
+${NAME}: more are supported through add-on packages.
+${NAME}:
+${NAME}: Homepage: http://www.ghostscript.com
+${NAME}:
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=http://downloads.ghostscript.com/public/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
+SRCCOPY[0]="GPL3"
+
+build0()
+{
+# force it to use system libs
+rm -rf jpeg libpng zlib jasper expat tiff lcms freetype
+(
+ cd ijs
+ chmod +x configure
+ CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+ ./configure \
+ --build="${ARCH}-slackware-linux" \
+ --disable-dependency-tracking \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --with-pkgconfigdir="${SYS_DIR[share]}/pkgconfig"
+ make ${JOBS}
+ make install DESTDIR="${PKG}"
+)
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --disable-dependency-tracking \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --disable-compile-inits \
+ --enable-dynamic \
+ --enable-fontconfig \
+ --enable-freetype \
+ --without-luratech \
+ --with-ijs \
+ --with-jbig2dec \
+ --with-omni \
+ --with-x \
+ --with-drivers=ALL \
+ --with-fontpath="/usr/share/fonts/Type1:/usr/share/fonts" \
+ --with-install-cups \
+ --with-system-libtiff
+make ${JOBS}
+make install soinstall DESTDIR="${PKG}"
+doc doc/AUTHORS
+license LICENSE
+#FIXME: compat
+(
+ cd ${PKG}${SYS_DIR[lib]}/exec/cups/filter
+ ln -sf gstoraster pstoraster
+)
+rm -rf \
+ ${PKG}${SYS_DIR[bin]}/ijs_*_example \
+ ${PKG}${SYS_DIR[share]}/application-data/ghostscript/${SRCVERS[0]}/{doc,examples}
+}
diff --git a/print/hplip/hplip-3.13.5-cups161fix.patch.xz b/print/hplip/hplip-3.13.5-cups161fix.patch.xz
new file mode 100644
index 0000000..63dbc24
--- /dev/null
+++ b/print/hplip/hplip-3.13.5-cups161fix.patch.xz
Binary files differ
diff --git a/print/hplip/hplip-3.13.5-desktopfile.patch.xz b/print/hplip/hplip-3.13.5-desktopfile.patch.xz
new file mode 100644
index 0000000..87292ce
--- /dev/null
+++ b/print/hplip/hplip-3.13.5-desktopfile.patch.xz
Binary files differ
diff --git a/print/hplip/hplip-3.13.5-libnotify.patch.xz b/print/hplip/hplip-3.13.5-libnotify.patch.xz
new file mode 100644
index 0000000..b72df06
--- /dev/null
+++ b/print/hplip/hplip-3.13.5-libnotify.patch.xz
Binary files differ
diff --git a/print/hplip/hplip-3.13.5-typo.patch.xz b/print/hplip/hplip-3.13.5-typo.patch.xz
new file mode 100644
index 0000000..8b28786
--- /dev/null
+++ b/print/hplip/hplip-3.13.5-typo.patch.xz
Binary files differ
diff --git a/print/hplip/hplip.build b/print/hplip/hplip.build
new file mode 100755
index 0000000..37ffcfa
--- /dev/null
+++ b/print/hplip/hplip.build
@@ -0,0 +1,123 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=hplip
+VERSION=3.13.5
+BUILD=1
+DEPENDS=('ghostscript >= 9.06-1' 'snmp >= 5.7.2-1' 'dbus >= 1.6.8-1')
+OPTDEPENDS=('usb >= 1.0.15-1' 'cups >= 1.6.2-1' 'python >= 2.7.4-1')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: hplip (HP print/scan/fax support)
+${NAME}:
+${NAME}: HPLIP is an HP developed solution for printing, scanning, and faxing
+${NAME}: with HP inkjet and laser based printers in Linux. The HPLIP project
+${NAME}: provides printing support for more than 1400 HP printer models,
+${NAME}: including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy),
+${NAME}: Business Inkjet, LaserJet, and LaserJet MFP.
+${NAME}:
+${NAME}: Homepage: http://hplipopensource.com
+${NAME}:
+${NAME}:
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+
+if [ -x usr/bin/update-desktop-database ]; then
+ usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
+fi
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=${URL[sf]}/${SRCNAME[0]}/${SRCNAME[0]}/${SRCVERS[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz
+SRCCOPY[0]="GPL2 BSD3 MIT"
+
+build0()
+{
+find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +
+find . -name "*.py" -exec sed -i '1s|#!/usr/bin/python|#!/usr/bin/python2|' {} +
+sed -i 's|python ./print.py|python2 ./print.py|' scan.py
+sed -i 's|python ./testpage.py|python2 ./testpage.py|' setup.py
+sed -i 's|python ./setup.py|python2 ./setup.py|' ui4/devmgr5.py ui4/nodevicesdialog.py
+sed -i 's|python %HOME%|python2 %HOME%|' base/utils.py
+sed -i 's|python ./plugin.py|python2 ./plugin.py|' base/pkit.py
+# https://bugs.archlinux.org/task/30085 - hack found in Gentoo
+# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
+# The hpcups driver does not use foomatic-rip
+(
+ cd ppd/hpijs
+ for file in *.ppd.gz; do
+ rm -f ${file}.temp
+ gunzip -c ${file} | sed 's|foomatic-rip-hplip|foomatic-rip|g' | gzip > ${file}.temp
+ mv ${file}.temp ${file}
+ done
+)
+#LIBS="-Wl,--as-needed $(pkg-config libusb --libs)"
+export PYTHON=python2
+sed -i 's|/usr/lib/systemd/system|/usr/share/systemd/system|g' Makefile.{am,in}
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --host="${ARCH}-slackware-linux" \
+ --disable-dependency-tracking \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix=/usr \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --docdir="${SYS_DIR[html]}/${SRCNAME[0]}" \
+ --with-docdir="${SYS_DIR[html]}/${SRCNAME[0]}" \
+ --with-cupsbackenddir="${SYS_DIR[lib]}/exec/cups/backend" \
+ --with-cupsfilterdir="${SYS_DIR[lib]}/exec/cups/filter" \
+ --with-hpppddir="${SYS_DIR[share]}/cups/model/HP" \
+ --with-drvdir="${SYS_DIR[share]}/cups/drv/hp" \
+ --disable-foomatic-rip-hplip-install \
+ --enable-foomatic-ppd-install \
+ --enable-foomatic-drv-install \
+ --enable-hpcups-install \
+ --enable-new-hpcups \
+ --enable-pp-build \
+ --enable-cups-ppd-install \
+ --enable-cups-drv-install \
+ --enable-hpijs-install \
+ --enable-network-build=yes \
+ --enable-shadow-build \
+ --disable-scan-build \
+ --enable-gui-build \
+ --enable-fax-build \
+ --enable-qt4 \
+ --enable-policykit \
+ --enable-udev-acl-rules
+#FIXME: --enable-scan-build when we have sane
+#FIXME: PAM
+make ${JOBS}
+make install DESTDIR="${PKG}" rulesdir="${SYS_DIR[udevrules]}"
+mv \
+ ${PKG}${SYS_DIR[etc]}/cron.daily/hplip_cron \
+ ${PKG}${SYS_DIR[etc]}/cron.daily/hplip
+# Log dir should not be world writeable
+chmod 775 \
+ ${PKG}${SYS_DIR[var]}/log/{hp,hp/tmp}
+rm -rf \
+ ${PKG}${SYS_DIR[etc]}/{sane.d,xdg} \
+ ${PKG}${SYS_DIR[share]}/hal
+}