From a91d41375fc87c958f0b4b2ec09d5bfa2bab9414 Mon Sep 17 00:00:00 2001 From: Starfall Date: Mon, 8 Jan 2024 09:40:24 -0600 Subject: Initial commit --- noarch/etc/smfp.conf | 222 +++++++++++++++++++++++++++++++++++++++++++++++ noarch/etc/smfp.fdi.in | 30 +++++++ noarch/etc/smfp.rules.in | 29 +++++++ 3 files changed, 281 insertions(+) create mode 100755 noarch/etc/smfp.conf create mode 100755 noarch/etc/smfp.fdi.in create mode 100755 noarch/etc/smfp.rules.in (limited to 'noarch/etc') diff --git a/noarch/etc/smfp.conf b/noarch/etc/smfp.conf new file mode 100755 index 0000000..8a5f12e --- /dev/null +++ b/noarch/etc/smfp.conf @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 2 + 0 + simplex + no + 75 150 200 + gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 2 + 0 + simplex + no + 75 150 200 300 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 0 + no + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter statement + a5 a5_extra b5 b5_extra b5_jis + executive quatro + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 0 + no + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter statement + a5 a5_extra b5 b5_extra b5_jis + executive quatro + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 1 + 0 + simplex + yes + 75 150 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 0 + simplex + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 2000 + simplex + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 2000 + simplex + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 0 + simplex + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 0 + simplex + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + + 3 + 0 + duplex + yes + 75 100 150 200 300 600 + color24bit gray256 bw_halftone bw_lineart + + a4 letter legal statement folio + a5 a5_extra b5 b5_extra b5_jis + executive quatro letter_plus a4_plus + envelope_9 envelope_10 envelope_11 envelope_12 + envelope_14 envelope_b5 envelope_b6 envelope_c5 + envelope_c6 envelope_c6c5 envelope_dl + envelope_110x230 envelope_monarch + custom + + + diff --git a/noarch/etc/smfp.fdi.in b/noarch/etc/smfp.fdi.in new file mode 100755 index 0000000..eb34295 --- /dev/null +++ b/noarch/etc/smfp.fdi.in @@ -0,0 +1,30 @@ + + +$(tab 1) +$(tab 1) +$(tab 2) +$(tab 3) + $(for pid in $PIDS ; do \ + echo "$(tab2 4)";\ + echo "$(tab2 5)access_control";\ + echo "$(tab2 5)linux.device_file" ;\ + echo "$(tab2 5)scanner" ;\ + echo "$(tab2 4)";\ + done) +$(tab 3) +$(tab 2) +$(tab 2) +$(tab 2) +$(tab 3) + $(for pid in $PIDS ; do \ + echo "$(tab2 4)";\ + echo "$(tab2 5)access_control";\ + echo "$(tab2 5)linux.device_file";\ + echo "$(tab2 5)scanner";\ + echo "$(tab2 4)";\ + done) +$(tab 3) +$(tab 2) +$(tab 1) + + diff --git a/noarch/etc/smfp.rules.in b/noarch/etc/smfp.rules.in new file mode 100755 index 0000000..0d1c1d9 --- /dev/null +++ b/noarch/etc/smfp.rules.in @@ -0,0 +1,29 @@ +# This file is a part of Unified Linux Driver +# Rules to allow low level USB device access for smfpautoconf +# +# For new distributions, +# Permissions and group are set according to common libsane rules +# + +ACTION!=\\"add\\", GOTO=\\"smfp_label_end\\" + +# Check device type +ENV{DEVTYPE}==\\"usb_device\\", GOTO=\\"smfp_create_usb_dev\\" + +# Check SUBSYSTEM (should be either \\"usb\\" or \\"usb_device\\") +SUBSYSTEM==\\"usb\\", GOTO=\\"smfp_create_usb_dev\\" +SUBSYSTEM==\\"usb_device\\", GOTO=\\"smfp_create_usb_dev\\" + +GOTO=\\"smfp_label_end\\" + +LABEL=\\"smfp_create_usb_dev\\" + +# Check Vendor ID +ATTR{idVendor}!=\\"$VID\\", GOTO=\\"smfp_label_end\\" + +$(for pid in $PIDS ; do echo "ATTRS{idProduct}==\\"$pid\\", ENV{libsane_matched}=\\"yes\\"" ; done) + +ENV{libsane_matched}==\\"yes\\", OWNER=\\"root\\", MODE=\\"664\\", GROUP=\\"lp\\" + +LABEL=\\"smfp_label_end\\" + -- cgit