|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright 2008,2009,2011 Damien Goutte-Gattat |
|
|
|
|
# Copyright 2008,2009,2011,2013 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-foo2zjs} |
|
|
|
|
VERSION=${VERSION:-20110430} |
|
|
|
|
VERSION=${VERSION:-20131209} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC.tar.gz} |
|
|
|
|
WGET=${WGET:-http://foo2zjs.rkkda.com/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -109,7 +109,7 @@ make install DESTDIR=$PKG CUPS_SERVERBIN=$PKG$CUPS_DIR
|
|
|
|
|
# the needed firmwares |
|
|
|
|
mkdir -p $PKG/lib/udev/rules.d |
|
|
|
|
install -m 644 hplj10xx.rules $PKG/lib/udev/rules.d/11-hplj10xx.rules |
|
|
|
|
sed -ri 's|/etc/hotplug/usb/||' $PKG/lib/udev/rules.d/11-hplj10xx.rules |
|
|
|
|
sed -ri 's|/etc/hotplug/usb/|/lib/udev/|' $PKG/lib/udev/rules.d/11-hplj10xx.rules |
|
|
|
|
install -m 755 hplj1000 $PKG/lib/udev |
|
|
|
|
for model in 10{05,18,20} P1{005,006,007,008,505} ; do |
|
|
|
|
ln -sf hplj1000 $PKG/lib/udev/hplj$model |
|
|
|
|