From e8b9a404c7a070ebf7d912822faeb55424580392 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 2 May 2020 08:48:52 +0200 Subject: [PATCH] added profiles and packages --- dev-python/pythonmagick/Manifest | 3 + dev-python/pythonmagick/metadata.xml | 11 ++ .../pythonmagick/pythonmagick-0.9.19.ebuild | 64 ++++++++++ metadata/layout.conf | 1 + net-print/samsung-unified-driver/Manifest | 6 + .../files/1.00.37-libsane-smfp.rules | 96 ++++++++++++++ .../files/1.00.39-libsane-smfp.rules | 96 ++++++++++++++ .../samsung-unified-driver-1.00.37.ebuild | 120 ++++++++++++++++++ .../samsung-unified-driver-1.00.39.ebuild | 120 ++++++++++++++++++ .../linux/amd64/17.1/feffe/desktop/eapi | 1 + .../linux/amd64/17.1/feffe/desktop/parent | 2 + .../linux/amd64/17.1/feffe/server/eapi | 1 + .../linux/amd64/17.1/feffe/server/parent | 2 + profiles/eapi | 1 + profiles/profiles.desc | 2 + profiles/targets/desktop/make.defaults | 36 ++++++ .../desktop/package.accept_keywords/automake | 1 + .../desktop/package.accept_keywords/devel | 1 + .../desktop/package.accept_keywords/gnucash | 1 + .../desktop/package.accept_keywords/jsoncpp | 1 + .../desktop/package.accept_keywords/kodi | 3 + .../desktop/package.accept_keywords/printer | 1 + .../package.accept_keywords/pythonmagick | 1 + .../desktop/package.accept_keywords/spotify | 1 + .../desktop/package.accept_keywords/xmonad | 31 +++++ .../desktop/package.unmask/pythonmagick | 1 + profiles/targets/desktop/package.use/colord | 1 + profiles/targets/desktop/package.use/ffmpeg | 1 + profiles/targets/desktop/package.use/fftw | 1 + profiles/targets/desktop/package.use/freetype | 1 + profiles/targets/desktop/package.use/fwupd | 1 + profiles/targets/desktop/package.use/grub | 1 + .../desktop/package.use/intel-microcode | 2 + profiles/targets/desktop/package.use/kodi | 1 + profiles/targets/desktop/package.use/libvirt | 1 + .../targets/desktop/package.use/lm-sensors | 1 + profiles/targets/desktop/package.use/lvm2 | 1 + .../targets/desktop/package.use/matplotlib | 1 + .../targets/desktop/package.use/modemmanager | 1 + profiles/targets/desktop/package.use/mozc | 1 + profiles/targets/desktop/package.use/mpv | 1 + .../package.use/networkmanager-openvpn | 1 + profiles/targets/desktop/package.use/pyqt5 | 0 profiles/targets/desktop/package.use/redshift | 1 + profiles/targets/desktop/package.use/rsyslog | 1 + .../package.use/samsung-unified-driver | 1 + profiles/targets/desktop/package.use/setools | 1 + profiles/targets/desktop/package.use/sqlite | 1 + .../targets/desktop/package.use/thunderbird | 1 + profiles/targets/desktop/package.use/xmlto | 1 + profiles/targets/desktop/package.use/zlib | 1 + profiles/targets/make.defaults | 9 ++ profiles/targets/package.accept_keywords/kodi | 2 + .../targets/package.accept_keywords/printer | 1 + .../targets/package.accept_keywords/spotify | 1 + profiles/targets/package.unmask/pythonmagick | 1 + profiles/targets/package.use/default | 0 57 files changed, 643 insertions(+) create mode 100644 dev-python/pythonmagick/Manifest create mode 100644 dev-python/pythonmagick/metadata.xml create mode 100644 dev-python/pythonmagick/pythonmagick-0.9.19.ebuild create mode 100644 net-print/samsung-unified-driver/Manifest create mode 100644 net-print/samsung-unified-driver/files/1.00.37-libsane-smfp.rules create mode 100644 net-print/samsung-unified-driver/files/1.00.39-libsane-smfp.rules create mode 100644 net-print/samsung-unified-driver/samsung-unified-driver-1.00.37.ebuild create mode 100644 net-print/samsung-unified-driver/samsung-unified-driver-1.00.39.ebuild create mode 100644 profiles/default/linux/amd64/17.1/feffe/desktop/eapi create mode 100644 profiles/default/linux/amd64/17.1/feffe/desktop/parent create mode 100644 profiles/default/linux/amd64/17.1/feffe/server/eapi create mode 100644 profiles/default/linux/amd64/17.1/feffe/server/parent create mode 100644 profiles/eapi create mode 100644 profiles/profiles.desc create mode 100644 profiles/targets/desktop/make.defaults create mode 100644 profiles/targets/desktop/package.accept_keywords/automake create mode 100644 profiles/targets/desktop/package.accept_keywords/devel create mode 100644 profiles/targets/desktop/package.accept_keywords/gnucash create mode 100644 profiles/targets/desktop/package.accept_keywords/jsoncpp create mode 100644 profiles/targets/desktop/package.accept_keywords/kodi create mode 100644 profiles/targets/desktop/package.accept_keywords/printer create mode 100644 profiles/targets/desktop/package.accept_keywords/pythonmagick create mode 100644 profiles/targets/desktop/package.accept_keywords/spotify create mode 100644 profiles/targets/desktop/package.accept_keywords/xmonad create mode 100644 profiles/targets/desktop/package.unmask/pythonmagick create mode 100644 profiles/targets/desktop/package.use/colord create mode 100644 profiles/targets/desktop/package.use/ffmpeg create mode 100644 profiles/targets/desktop/package.use/fftw create mode 100644 profiles/targets/desktop/package.use/freetype create mode 100644 profiles/targets/desktop/package.use/fwupd create mode 100644 profiles/targets/desktop/package.use/grub create mode 100644 profiles/targets/desktop/package.use/intel-microcode create mode 100644 profiles/targets/desktop/package.use/kodi create mode 100644 profiles/targets/desktop/package.use/libvirt create mode 100644 profiles/targets/desktop/package.use/lm-sensors create mode 100644 profiles/targets/desktop/package.use/lvm2 create mode 100644 profiles/targets/desktop/package.use/matplotlib create mode 100644 profiles/targets/desktop/package.use/modemmanager create mode 100644 profiles/targets/desktop/package.use/mozc create mode 100644 profiles/targets/desktop/package.use/mpv create mode 100644 profiles/targets/desktop/package.use/networkmanager-openvpn create mode 100644 profiles/targets/desktop/package.use/pyqt5 create mode 100644 profiles/targets/desktop/package.use/redshift create mode 100644 profiles/targets/desktop/package.use/rsyslog create mode 100644 profiles/targets/desktop/package.use/samsung-unified-driver create mode 100644 profiles/targets/desktop/package.use/setools create mode 100644 profiles/targets/desktop/package.use/sqlite create mode 100644 profiles/targets/desktop/package.use/thunderbird create mode 100644 profiles/targets/desktop/package.use/xmlto create mode 100644 profiles/targets/desktop/package.use/zlib create mode 100644 profiles/targets/make.defaults create mode 100644 profiles/targets/package.accept_keywords/kodi create mode 100644 profiles/targets/package.accept_keywords/printer create mode 100644 profiles/targets/package.accept_keywords/spotify create mode 100644 profiles/targets/package.unmask/pythonmagick create mode 100644 profiles/targets/package.use/default diff --git a/dev-python/pythonmagick/Manifest b/dev-python/pythonmagick/Manifest new file mode 100644 index 0000000..5449205 --- /dev/null +++ b/dev-python/pythonmagick/Manifest @@ -0,0 +1,3 @@ +DIST PythonMagick-0.9.19.tar.xz 272460 SHA256 cd0fb3d1b4c6aaafa3b4a20794264c240a38d9e26a9dff1d5c5b3857a96a290d SHA512 d9420c524cd59cad7f5c53064582a8a420d3d6441f13bbb6ea6abdcf6b4f1f10a5bd9ac222f5bf2c1888d630290a1177fc2261f4ad5fcc61108d1da70c9ef884 WHIRLPOOL 2e3f0f80a947ffa8667ffb6e24ceed484e150d01316441d41df894fad206b55e387416964c3b2e6f9070e4d931a5f50500b3864c11ec07d7336877b34a8cbcc3 +EBUILD pythonmagick-0.9.19.ebuild 1302 SHA256 e4ef418ef168f9e1d1bf3625e225c11a6b3bdd2b8ccc2744df424ff57ed00def SHA512 152985afbe7fbf2cfcc0c9fb88029a9b781afa837cc4e6086a289d6558aaf242e9ff822bf125a2694aee104831a736c776e02ba903a21a83b575d88699c34bb8 WHIRLPOOL 38f9ee851d2f409a3746dfffa6ecda46d1d46456f6c8ad7d9edd7911faa726781846eb29c2755e6bfa8adef53fc7f4cb1d61cf583b4e859517402f60055256a2 +MISC metadata.xml 349 SHA256 b992ba0229d7dedd09f3619c780f1421c98862bb3fe6f9784b78de058c963fe3 SHA512 14d5899e6fcd0ade11aec2f92cfce123a9c1093877e340e49baddfbbde0ca2b3052dc77181e4487c19bb3e4ef7391bc0171b5e26b004517f6f26254c73393a58 WHIRLPOOL 34a1ab59e985a11160c5534ac68f87f205f16adaf65484a43acb9c9418c250b8297e96e1b48e07c05e78a32600b91afdbacfd0669def4c269b44b42373e75342 diff --git a/dev-python/pythonmagick/metadata.xml b/dev-python/pythonmagick/metadata.xml new file mode 100644 index 0000000..8dfa663 --- /dev/null +++ b/dev-python/pythonmagick/metadata.xml @@ -0,0 +1,11 @@ + + + + + python@gentoo.org + Python + + + An object-oriented Python interface to ImageMagick. + + diff --git a/dev-python/pythonmagick/pythonmagick-0.9.19.ebuild b/dev-python/pythonmagick/pythonmagick-0.9.19.ebuild new file mode 100644 index 0000000..5ac7026 --- /dev/null +++ b/dev-python/pythonmagick/pythonmagick-0.9.19.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) + +inherit autotools python-r1 + +MY_PN="PythonMagick" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python bindings for ImageMagick" +HOMEPAGE="http://www.imagemagick.org/script/api.php" +SRC_URI="https://www.imagemagick.org/download/python/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-libs/boost-1.48[python,${PYTHON_USEDEP}] + >=media-gfx/imagemagick-6.9.1 +" +DEPEND="${RDEPEND} + virtual/pkgconfig + >=sys-devel/automake-1.16.1-r2 +" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + eautomake + python_copy_sources +} + +src_configure() { + python_configure() { + if ! python_is_python3; then + local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" + fi + econf \ + --disable-static \ + --with-boost-python=boost_python-${EPYTHON#python} + } + + python_foreach_impl run_in_build_dir python_configure +} + +src_compile() { + python_foreach_impl run_in_build_dir emake +} + +src_test() { + python_foreach_impl run_in_build_dir emake check +} + +src_install() { + python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install + einstalldocs + find "${D}" -name '*.la' -delete || die +} diff --git a/metadata/layout.conf b/metadata/layout.conf index d43e61c..393f0d5 100644 --- a/metadata/layout.conf +++ b/metadata/layout.conf @@ -1 +1,2 @@ masters = gentoo +profile-formats = portage-2 diff --git a/net-print/samsung-unified-driver/Manifest b/net-print/samsung-unified-driver/Manifest new file mode 100644 index 0000000..1223936 --- /dev/null +++ b/net-print/samsung-unified-driver/Manifest @@ -0,0 +1,6 @@ +AUX 1.00.37-libsane-smfp.rules 9401 SHA256 528b6eea5f9cfd537f77239d3d32547c20a06a66f02ac036dd732b4f4938d5fd SHA512 2fa0cbab5187a545004727b50838f1abed35dfbe839f129d1bb99ef290ce05788101cd3ebe6bd1ef8b799605550d2885c18ea2cfd6b2a64e9eea4383bf185dbc WHIRLPOOL f272c0754646999fd1b79091b2b17f4e6ed8e2a2397e1d8f0b93e6824402252e6a84a004992cef610302ca1a65eebeaf19c2e6efa8925ba86d200e3269fde662 +AUX 1.00.39-libsane-smfp.rules 9401 SHA256 528b6eea5f9cfd537f77239d3d32547c20a06a66f02ac036dd732b4f4938d5fd SHA512 2fa0cbab5187a545004727b50838f1abed35dfbe839f129d1bb99ef290ce05788101cd3ebe6bd1ef8b799605550d2885c18ea2cfd6b2a64e9eea4383bf185dbc WHIRLPOOL f272c0754646999fd1b79091b2b17f4e6ed8e2a2397e1d8f0b93e6824402252e6a84a004992cef610302ca1a65eebeaf19c2e6efa8925ba86d200e3269fde662 +DIST samsung-unified-driver-1.00.37.tar.gz 15409140 SHA256 6b85253ea0bb51d241f6fd665ff0d39464cdad87084802a77a385c707fa2c664 SHA512 96feb7f7464db616f400f34a61bf6facafe51da9a48e19d6c4e702ea2377e86f5a5f93d085c50c8220396249febbf8e604a9fe27c25324f36ad0e58552af21fb WHIRLPOOL 5d1f40e89da8736fbfa3c533628cb246d49172a5017e8b4743cbabca2bdde9ee9e367f0e8b903c5ad7b8fb15da5d3a3bda30f6834e753ed32fc710983f9b4377 +DIST samsung-unified-driver-1.00.39.tar.gz 15443851 SHA256 09c166f9b1e11ff312965886387ee31c6980867c67c3d6206680cbae76ae6746 SHA512 fccda77af20b31c9b46117b013d0c40333adc87679057c2b1e513d9bae97fc7267eca74030bc039feec50edee8e4cdfebe8761c77d653646f7ea4ac102c2643f WHIRLPOOL 148453d04e1856c36b7f13b64d6aea2b4cfefe3cd28fa3b5f561fcd26844a631df6f57ed3c509f0d648eca81995b8647700e17b744674060f16c597d8889c115 +EBUILD samsung-unified-driver-1.00.37.ebuild 3122 SHA256 8678b85b811fdd4831cede7f23f5b6b7419e8d2d35dc0f0bb6850e9839d7a6d5 SHA512 dde259c88b8ee5ed6f8e74f717577d6075b43bfb6cd35d186b5f8786c45a7bbf986787150f7b23a51cd08d050292ff20bbc66543d35c1516580e4f20d3e92261 WHIRLPOOL eb8edfc77bc5b587bb4685a73801209a24c7ef1153ee6631b8bca36d53f0f082eba300f0620318b14f0c0dc48fc5753cba63b038e6d00c190524124d24f99770 +EBUILD samsung-unified-driver-1.00.39.ebuild 3122 SHA256 bb7cc8085d079a8dfa767ee5c86af5a7c63968fd6040121b2cc247d98be6fb5b SHA512 40dd30173ec0460bef3caac6349db4f7a2dfa06f0bded159ca4bce9cc6c65c39b7ccaf7659917729afd5248319f10051b126c6b9c14dd1cf4701d7c400d29c61 WHIRLPOOL f7163add33cdbdaf735028e97e1a3d94bca5930c3d389c105eb7c41e4b847bcadc5188bd86d9301d44be69db2fe99dc223c49a62af8fca6ca3cf726f510e6c87 diff --git a/net-print/samsung-unified-driver/files/1.00.37-libsane-smfp.rules b/net-print/samsung-unified-driver/files/1.00.37-libsane-smfp.rules new file mode 100644 index 0000000..6481cb0 --- /dev/null +++ b/net-print/samsung-unified-driver/files/1.00.37-libsane-smfp.rules @@ -0,0 +1,96 @@ +# This file is a part of net-print/samsung-unified-driver package and is based +# on udev rules shipped by Samsung, but assigns permissions and ownership in +# the SANE way. +# +ACTION!="add", GOTO="libsane_smfp_rules_end" +ENV{DEVTYPE}=="usb_device", GOTO="libsane_smfp_rules_begin" +SUBSYSTEM=="usb|usb_device", GOTO="libsane_smfp_rules_begin" +GOTO="libsane_smfp_rules_end" + +LABEL="libsane_smfp_rules_begin" + +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3425", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3456", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3427", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3428", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3455", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3421", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3439", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3444", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3431", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3462", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3464", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3461", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3460", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="340e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3435", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="340f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3441", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3413", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3426", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3433", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3440", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3434", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3457", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3453", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3409", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3412", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3419", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3432", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3430", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3446", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3437", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3442", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3466", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="340d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3420", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3429", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3443", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3438", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3463", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3465", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3450", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3468", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3469", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3467", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="346b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="346a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="346e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3471", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3472", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="347d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="347c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="347e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3481", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3482", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3331", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3332", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3483", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3484", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" + +LABEL="libsane_smfp_rules_end" diff --git a/net-print/samsung-unified-driver/files/1.00.39-libsane-smfp.rules b/net-print/samsung-unified-driver/files/1.00.39-libsane-smfp.rules new file mode 100644 index 0000000..6481cb0 --- /dev/null +++ b/net-print/samsung-unified-driver/files/1.00.39-libsane-smfp.rules @@ -0,0 +1,96 @@ +# This file is a part of net-print/samsung-unified-driver package and is based +# on udev rules shipped by Samsung, but assigns permissions and ownership in +# the SANE way. +# +ACTION!="add", GOTO="libsane_smfp_rules_end" +ENV{DEVTYPE}=="usb_device", GOTO="libsane_smfp_rules_begin" +SUBSYSTEM=="usb|usb_device", GOTO="libsane_smfp_rules_begin" +GOTO="libsane_smfp_rules_end" + +LABEL="libsane_smfp_rules_begin" + +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3425", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3456", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3427", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3428", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3455", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3421", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3439", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3444", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3431", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3462", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3464", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3461", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3460", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="340e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3435", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="340f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3441", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3413", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3426", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3433", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3440", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3434", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3457", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3453", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3409", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3412", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3419", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3432", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3430", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342f", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3446", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3437", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3442", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3466", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="340d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3420", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3429", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3443", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3438", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="345d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3463", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3465", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3450", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3468", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3469", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3467", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="346b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="346a", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="346e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3471", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3472", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="347d", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="347c", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="347e", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3481", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3482", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3331", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3332", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3483", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" +ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3484", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes" + +LABEL="libsane_smfp_rules_end" diff --git a/net-print/samsung-unified-driver/samsung-unified-driver-1.00.37.ebuild b/net-print/samsung-unified-driver/samsung-unified-driver-1.00.37.ebuild new file mode 100644 index 0000000..505b96d --- /dev/null +++ b/net-print/samsung-unified-driver/samsung-unified-driver-1.00.37.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info udev vcs-snapshot + +EXTRA_PV=00.99 + +DESCRIPTION="Samsung Unified Linux Driver for printers and MFDs" +HOMEPAGE="http://www.samsung.com" +SRC_URI="http://downloadcenter.samsung.com/content/DR/201512/20151211135958538/ULD_v${PV}_${EXTRA_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Samsung-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="cups network scanner" + +RDEPEND=" + cups? ( + net-print/cups + !net-print/splix + ) + scanner? ( + media-gfx/sane-backends + dev-libs/libxml2:2 + virtual/libusb:0 + ) + network? ( virtual/libusb ) +" + +REQUIRED_USE=" + network? ( cups ) + || ( cups scanner ) +" + +RESTRICT="mirror strip" + +pkg_pretend() { + if use scanner && ! has_version ${CATEGORY}/${PN}[scanner]; then + if ! linux_config_exists || linux_chkconfig_present USB_PRINTER; then + ewarn "Samsung USB MFDs are normally managed via libusb." + ewarn "In this case, you need to either disable the USB_PRINTER" + ewarn "support in your kernel, or blacklist the 'usblp' module." + fi + fi +} + +pkg_setup() { + if use cups; then + QA_SONAME="usr/$(get_libdir)/libscmssc.so" + QA_FLAGS_IGNORED+=" usr/$(get_libdir)/libscmssc.so" + QA_FLAGS_IGNORED+=" usr/libexec/cups/filter/pstosecps" + QA_FLAGS_IGNORED+=" usr/libexec/cups/filter/rastertospl" + fi + if use scanner; then + QA_FLAGS_IGNORED+=" usr/$(get_libdir)/sane/libsane-smfp.so.1.0.1" + fi + if use network; then + QA_FLAGS_IGNORED+=" usr/libexec/cups/backend/smfpnetdiscovery" + fi +} + +src_install() { + local MY_ARCH="x86_64" + use x86 && MY_ARCH="i386" + + # Printer support. + if use cups; then + # libscmssc.so is required by rastertospl. + dolib.so ${MY_ARCH}/libscmssc.so + + exeinto /usr/libexec/cups/filter + doexe ${MY_ARCH}/{pstosecps,rastertospl} + + dodir /usr/share/cups/model/samsung + insinto /usr/share/cups/model/samsung + doins noarch/share/ppd/*.ppd + gzip -9 "${ED}"usr/share/cups/model/samsung/*.ppd || die + + dodir /usr/share/cups/profiles/samsung + insinto /usr/share/cups/profiles/samsung + doins noarch/share/ppd/cms/*.cts + fi + + # Scanner support. + if use scanner; then + insinto /etc/sane.d + doins noarch/etc/smfp.conf + + dodir /opt/samsung/scanner/share + insinto /opt/samsung/scanner/share + doins noarch/oem.conf + + exeinto /usr/$(get_libdir)/sane + doexe ${MY_ARCH}/libsane-smfp.so.1.0.1 + + dosym libsane-smfp.so.1.0.1 /usr/$(get_libdir)/sane/libsane-smfp.so + dosym libsane-smfp.so.1.0.1 /usr/$(get_libdir)/sane/libsane-smfp.so.1 + + udev_newrules "${FILESDIR}/${PV}-libsane-smfp.rules" 40-libsane-smfp.rules + fi + + # Network support. + if use network; then + exeinto /usr/libexec/cups/backend + doexe ${MY_ARCH}/smfpnetdiscovery + fi +} + +pkg_postinst() { + if use scanner && ! has_version ${CATEGORY}/${PN}[scanner]; then + elog "You need to manually add 'smfp' backend to /etc/sane.d/dll.conf:" + elog "# echo smfp >> /etc/sane.d/dll.conf" + fi + if use network && ! has_version ${CATEGORY}/${PN}[network]; then + elog "If you are behind a firewall, you need to allow SNMP UDP packets" + elog "with source port 161 and destination port 22161." + fi +} diff --git a/net-print/samsung-unified-driver/samsung-unified-driver-1.00.39.ebuild b/net-print/samsung-unified-driver/samsung-unified-driver-1.00.39.ebuild new file mode 100644 index 0000000..9dc968a --- /dev/null +++ b/net-print/samsung-unified-driver/samsung-unified-driver-1.00.39.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info udev vcs-snapshot + +EXTRA_PV=01.17 + +DESCRIPTION="Samsung Unified Linux Driver for printers and MFDs" +HOMEPAGE="http://www.samsung.com" +SRC_URI="http://downloadcenter.samsung.com/content/DR/201704/20170407143829533/uld_v${PV}_${EXTRA_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Samsung-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="cups network scanner" + +RDEPEND=" + cups? ( + net-print/cups + !net-print/splix + ) + scanner? ( + media-gfx/sane-backends + dev-libs/libxml2:2 + virtual/libusb:0 + ) + network? ( virtual/libusb ) +" + +REQUIRED_USE=" + network? ( cups ) + || ( cups scanner ) +" + +RESTRICT="mirror strip" + +pkg_pretend() { + if use scanner && ! has_version ${CATEGORY}/${PN}[scanner]; then + if ! linux_config_exists || linux_chkconfig_present USB_PRINTER; then + ewarn "Samsung USB MFDs are normally managed via libusb." + ewarn "In this case, you need to either disable the USB_PRINTER" + ewarn "support in your kernel, or blacklist the 'usblp' module." + fi + fi +} + +pkg_setup() { + if use cups; then + QA_SONAME="usr/$(get_libdir)/libscmssc.so" + QA_FLAGS_IGNORED+=" usr/$(get_libdir)/libscmssc.so" + QA_FLAGS_IGNORED+=" usr/libexec/cups/filter/pstosecps" + QA_FLAGS_IGNORED+=" usr/libexec/cups/filter/rastertospl" + fi + if use scanner; then + QA_FLAGS_IGNORED+=" usr/$(get_libdir)/sane/libsane-smfp.so.1.0.1" + fi + if use network; then + QA_FLAGS_IGNORED+=" usr/libexec/cups/backend/smfpnetdiscovery" + fi +} + +src_install() { + local MY_ARCH="x86_64" + use x86 && MY_ARCH="i386" + + # Printer support. + if use cups; then + # libscmssc.so is required by rastertospl. + dolib.so ${MY_ARCH}/libscmssc.so + + exeinto /usr/libexec/cups/filter + doexe ${MY_ARCH}/{pstosecps,rastertospl} + + dodir /usr/share/cups/model/samsung + insinto /usr/share/cups/model/samsung + doins noarch/share/ppd/*.ppd + gzip -9 "${ED}"usr/share/cups/model/samsung/*.ppd || die + + dodir /usr/share/cups/profiles/samsung + insinto /usr/share/cups/profiles/samsung + doins noarch/share/ppd/cms/*.cts + fi + + # Scanner support. + if use scanner; then + insinto /etc/sane.d + doins noarch/etc/smfp.conf + + dodir /opt/samsung/scanner/share + insinto /opt/samsung/scanner/share + doins noarch/oem.conf + + exeinto /usr/$(get_libdir)/sane + doexe ${MY_ARCH}/libsane-smfp.so.1.0.1 + + dosym libsane-smfp.so.1.0.1 /usr/$(get_libdir)/sane/libsane-smfp.so + dosym libsane-smfp.so.1.0.1 /usr/$(get_libdir)/sane/libsane-smfp.so.1 + + udev_newrules "${FILESDIR}/${PV}-libsane-smfp.rules" 40-libsane-smfp.rules + fi + + # Network support. + if use network; then + exeinto /usr/libexec/cups/backend + doexe ${MY_ARCH}/smfpnetdiscovery + fi +} + +pkg_postinst() { + if use scanner && ! has_version ${CATEGORY}/${PN}[scanner]; then + elog "You need to manually add 'smfp' backend to /etc/sane.d/dll.conf:" + elog "# echo smfp >> /etc/sane.d/dll.conf" + fi + if use network && ! has_version ${CATEGORY}/${PN}[network]; then + elog "If you are behind a firewall, you need to allow SNMP UDP packets" + elog "with source port 161 and destination port 22161." + fi +} diff --git a/profiles/default/linux/amd64/17.1/feffe/desktop/eapi b/profiles/default/linux/amd64/17.1/feffe/desktop/eapi new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/profiles/default/linux/amd64/17.1/feffe/desktop/eapi @@ -0,0 +1 @@ +7 diff --git a/profiles/default/linux/amd64/17.1/feffe/desktop/parent b/profiles/default/linux/amd64/17.1/feffe/desktop/parent new file mode 100644 index 0000000..90564de --- /dev/null +++ b/profiles/default/linux/amd64/17.1/feffe/desktop/parent @@ -0,0 +1,2 @@ +gentoo:default/linux/amd64/17.1/hardened/selinux +../../../../../../targets/desktop diff --git a/profiles/default/linux/amd64/17.1/feffe/server/eapi b/profiles/default/linux/amd64/17.1/feffe/server/eapi new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/profiles/default/linux/amd64/17.1/feffe/server/eapi @@ -0,0 +1 @@ +7 diff --git a/profiles/default/linux/amd64/17.1/feffe/server/parent b/profiles/default/linux/amd64/17.1/feffe/server/parent new file mode 100644 index 0000000..87cf57f --- /dev/null +++ b/profiles/default/linux/amd64/17.1/feffe/server/parent @@ -0,0 +1,2 @@ +gentoo:default/linux/amd64/17.1/hardened/selinux +../../../../../../targets/server diff --git a/profiles/eapi b/profiles/eapi new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/profiles/eapi @@ -0,0 +1 @@ +7 diff --git a/profiles/profiles.desc b/profiles/profiles.desc new file mode 100644 index 0000000..3feed94 --- /dev/null +++ b/profiles/profiles.desc @@ -0,0 +1,2 @@ +amd64 default/linux/amd64/17.1/feffe/desktop exp +amd64 default/linux/amd64/17.1/feffe/server exp diff --git a/profiles/targets/desktop/make.defaults b/profiles/targets/desktop/make.defaults new file mode 100644 index 0000000..34320e1 --- /dev/null +++ b/profiles/targets/desktop/make.defaults @@ -0,0 +1,36 @@ +CFLAGS="-O2 -pipe -march=native" +CXXFLAGS="${CFLAGS}" +CHOST="x86_64-pc-linux-gnu" + +INPUT_DEVICES="libinput" +GRUB_PLATFORMS="efi-64 pc" +ABI_X86="32 64" + +PLOICY_TYPES="mcs" + +USE=" + X + fcitx4 cjk icu truetype idn fontconfig spell + opengl vaapi vdpau xinerama libkms dri + bluray drm dvd lcms bdplus v4l aacs colord + pulseaudio ogg mp3 alsa vorbis + jpeg zimg png tiff gif exif xmp svg apng + elogind dbus udev policykit + python + lz4 lzma + vim-syntax + bluetooth usb + sqlite berkdb + pkcs11 + gtk cairo + wifi + device-mapper + ipset iproute2 + modemmanager networkmanager + spice + ssh nss + cups scanner ocr + libnotify + hwaccel + http2 + " diff --git a/profiles/targets/desktop/package.accept_keywords/automake b/profiles/targets/desktop/package.accept_keywords/automake new file mode 100644 index 0000000..1166d46 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/automake @@ -0,0 +1 @@ +=sys-devel/automake-1.16.2 ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/devel b/profiles/targets/desktop/package.accept_keywords/devel new file mode 100644 index 0000000..d17e2a5 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/devel @@ -0,0 +1 @@ +app-admin/pdk ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/gnucash b/profiles/targets/desktop/package.accept_keywords/gnucash new file mode 100644 index 0000000..304613b --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/gnucash @@ -0,0 +1 @@ +=app-office/gnucash-3.8b-r1 ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/jsoncpp b/profiles/targets/desktop/package.accept_keywords/jsoncpp new file mode 100644 index 0000000..7ce73b5 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/jsoncpp @@ -0,0 +1 @@ +=dev-libs/jsoncpp-1.9.3_pre20200412 ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/kodi b/profiles/targets/desktop/package.accept_keywords/kodi new file mode 100644 index 0000000..2698cf6 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/kodi @@ -0,0 +1,3 @@ +media-libs/kodi-platform ~amd64 +media-plugins/kodi-vfs-sftp ~amd64 +media-tv/kodi ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/printer b/profiles/targets/desktop/package.accept_keywords/printer new file mode 100644 index 0000000..7aa4c59 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/printer @@ -0,0 +1 @@ +net-print/samsung-unified-driver ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/pythonmagick b/profiles/targets/desktop/package.accept_keywords/pythonmagick new file mode 100644 index 0000000..e00a4e3 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/pythonmagick @@ -0,0 +1 @@ +=dev-python/pythonmagick-0.9.19 ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/spotify b/profiles/targets/desktop/package.accept_keywords/spotify new file mode 100644 index 0000000..58b94b1 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/spotify @@ -0,0 +1 @@ +media-sound/spotify ~amd64 diff --git a/profiles/targets/desktop/package.accept_keywords/xmonad b/profiles/targets/desktop/package.accept_keywords/xmonad new file mode 100644 index 0000000..95ca7a5 --- /dev/null +++ b/profiles/targets/desktop/package.accept_keywords/xmonad @@ -0,0 +1,31 @@ +x11-wm/xmonad-contrib ~amd64 +x11-wm/xmonad ~amd64 +dev-lang/ghc ~amd64 +dev-haskell/x11-xft ~amd64 +dev-haskell/x11 ~amd64 +app-admin/haskell-updater ~amd64 +dev-haskell/cabal ~amd64 +dev-haskell/data-default ~amd64 +dev-haskell/data-default-class ~amd64 +dev-haskell/data-default-instances-base ~amd64 +dev-haskell/data-default-instances-containers ~amd64 +dev-haskell/data-default-instances-dlist ~amd64 +dev-haskell/data-default-instances-old-locale ~amd64 +dev-haskell/dlist ~amd64 +dev-haskell/extensible-exceptions ~amd64 +dev-haskell/mtl ~amd64 +dev-haskell/old-locale ~amd64 +dev-haskell/old-time ~amd64 +dev-haskell/random ~amd64 +dev-haskell/setlocale ~amd64 +dev-haskell/transformers ~amd64 +dev-haskell/utf8-string ~amd64 +dev-haskell/semigroups ~amd64 +dev-haskell/bytestring-builder ~amd64 +dev-haskell/hashable ~amd64 +dev-haskell/nats ~amd64 +dev-haskell/tagged ~amd64 +dev-haskell/text ~amd64 +dev-haskell/unordered-containers ~amd64 +dev-haskell/binary ~amd64 +dev-haskell/transformers-compat ~amd64 diff --git a/profiles/targets/desktop/package.unmask/pythonmagick b/profiles/targets/desktop/package.unmask/pythonmagick new file mode 100644 index 0000000..af16cd8 --- /dev/null +++ b/profiles/targets/desktop/package.unmask/pythonmagick @@ -0,0 +1 @@ +dev-python/pythonmagick diff --git a/profiles/targets/desktop/package.use/colord b/profiles/targets/desktop/package.use/colord new file mode 100644 index 0000000..941e001 --- /dev/null +++ b/profiles/targets/desktop/package.use/colord @@ -0,0 +1 @@ +x11-misc/colord vala diff --git a/profiles/targets/desktop/package.use/ffmpeg b/profiles/targets/desktop/package.use/ffmpeg new file mode 100644 index 0000000..e1fe8d5 --- /dev/null +++ b/profiles/targets/desktop/package.use/ffmpeg @@ -0,0 +1 @@ +media-video/ffmpeg openssl libass diff --git a/profiles/targets/desktop/package.use/fftw b/profiles/targets/desktop/package.use/fftw new file mode 100644 index 0000000..0079b61 --- /dev/null +++ b/profiles/targets/desktop/package.use/fftw @@ -0,0 +1 @@ +sci-libs/fftw threads diff --git a/profiles/targets/desktop/package.use/freetype b/profiles/targets/desktop/package.use/freetype new file mode 100644 index 0000000..552b901 --- /dev/null +++ b/profiles/targets/desktop/package.use/freetype @@ -0,0 +1 @@ +media-libs/freetype infinality diff --git a/profiles/targets/desktop/package.use/fwupd b/profiles/targets/desktop/package.use/fwupd new file mode 100644 index 0000000..4f12ee0 --- /dev/null +++ b/profiles/targets/desktop/package.use/fwupd @@ -0,0 +1 @@ +sys-apps/fwupd agent nvme uefi diff --git a/profiles/targets/desktop/package.use/grub b/profiles/targets/desktop/package.use/grub new file mode 100644 index 0000000..179cd40 --- /dev/null +++ b/profiles/targets/desktop/package.use/grub @@ -0,0 +1 @@ +sys-boot/grub libzfs mount diff --git a/profiles/targets/desktop/package.use/intel-microcode b/profiles/targets/desktop/package.use/intel-microcode new file mode 100644 index 0000000..20850aa --- /dev/null +++ b/profiles/targets/desktop/package.use/intel-microcode @@ -0,0 +1,2 @@ +sys-firmware/intel-microcode initramfs + diff --git a/profiles/targets/desktop/package.use/kodi b/profiles/targets/desktop/package.use/kodi new file mode 100644 index 0000000..bb44522 --- /dev/null +++ b/profiles/targets/desktop/package.use/kodi @@ -0,0 +1 @@ +media-tv/kodi mysql diff --git a/profiles/targets/desktop/package.use/libvirt b/profiles/targets/desktop/package.use/libvirt new file mode 100644 index 0000000..4746616 --- /dev/null +++ b/profiles/targets/desktop/package.use/libvirt @@ -0,0 +1 @@ +app-emulation/libvirt virt-network diff --git a/profiles/targets/desktop/package.use/lm-sensors b/profiles/targets/desktop/package.use/lm-sensors new file mode 100644 index 0000000..40eee30 --- /dev/null +++ b/profiles/targets/desktop/package.use/lm-sensors @@ -0,0 +1 @@ +sys-apps/lm-sensors sensord diff --git a/profiles/targets/desktop/package.use/lvm2 b/profiles/targets/desktop/package.use/lvm2 new file mode 100644 index 0000000..6f6203c --- /dev/null +++ b/profiles/targets/desktop/package.use/lvm2 @@ -0,0 +1 @@ +sys-fs/lvm2 lvm2create_initrd diff --git a/profiles/targets/desktop/package.use/matplotlib b/profiles/targets/desktop/package.use/matplotlib new file mode 100644 index 0000000..075586f --- /dev/null +++ b/profiles/targets/desktop/package.use/matplotlib @@ -0,0 +1 @@ +dev-python/matplotlib -python_targets_python2_7 diff --git a/profiles/targets/desktop/package.use/modemmanager b/profiles/targets/desktop/package.use/modemmanager new file mode 100644 index 0000000..c9ffa71 --- /dev/null +++ b/profiles/targets/desktop/package.use/modemmanager @@ -0,0 +1 @@ +net-misc/modemmanager mbim diff --git a/profiles/targets/desktop/package.use/mozc b/profiles/targets/desktop/package.use/mozc new file mode 100644 index 0000000..e1f63f1 --- /dev/null +++ b/profiles/targets/desktop/package.use/mozc @@ -0,0 +1 @@ +app-i18n/mozc renderer diff --git a/profiles/targets/desktop/package.use/mpv b/profiles/targets/desktop/package.use/mpv new file mode 100644 index 0000000..e067c28 --- /dev/null +++ b/profiles/targets/desktop/package.use/mpv @@ -0,0 +1 @@ +media-video/mpv cli diff --git a/profiles/targets/desktop/package.use/networkmanager-openvpn b/profiles/targets/desktop/package.use/networkmanager-openvpn new file mode 100644 index 0000000..faf6929 --- /dev/null +++ b/profiles/targets/desktop/package.use/networkmanager-openvpn @@ -0,0 +1 @@ +net-vpn/networkmanager-openvpn -gtk diff --git a/profiles/targets/desktop/package.use/pyqt5 b/profiles/targets/desktop/package.use/pyqt5 new file mode 100644 index 0000000..e69de29 diff --git a/profiles/targets/desktop/package.use/redshift b/profiles/targets/desktop/package.use/redshift new file mode 100644 index 0000000..d8e0f5a --- /dev/null +++ b/profiles/targets/desktop/package.use/redshift @@ -0,0 +1 @@ +x11-misc/redshift geoclue diff --git a/profiles/targets/desktop/package.use/rsyslog b/profiles/targets/desktop/package.use/rsyslog new file mode 100644 index 0000000..ab1078d --- /dev/null +++ b/profiles/targets/desktop/package.use/rsyslog @@ -0,0 +1 @@ +app-admin/rsyslog openssl relp diff --git a/profiles/targets/desktop/package.use/samsung-unified-driver b/profiles/targets/desktop/package.use/samsung-unified-driver new file mode 100644 index 0000000..9073583 --- /dev/null +++ b/profiles/targets/desktop/package.use/samsung-unified-driver @@ -0,0 +1 @@ +net-print/samsung-unified-driver network diff --git a/profiles/targets/desktop/package.use/setools b/profiles/targets/desktop/package.use/setools new file mode 100644 index 0000000..4c1fa03 --- /dev/null +++ b/profiles/targets/desktop/package.use/setools @@ -0,0 +1 @@ +app-admin/setools -X diff --git a/profiles/targets/desktop/package.use/sqlite b/profiles/targets/desktop/package.use/sqlite new file mode 100644 index 0000000..6bfe0a4 --- /dev/null +++ b/profiles/targets/desktop/package.use/sqlite @@ -0,0 +1 @@ +dev-db/sqlite secure-delete diff --git a/profiles/targets/desktop/package.use/thunderbird b/profiles/targets/desktop/package.use/thunderbird new file mode 100644 index 0000000..2d1b805 --- /dev/null +++ b/profiles/targets/desktop/package.use/thunderbird @@ -0,0 +1 @@ +mail-client/thunderbird lightning diff --git a/profiles/targets/desktop/package.use/xmlto b/profiles/targets/desktop/package.use/xmlto new file mode 100644 index 0000000..d2deeb3 --- /dev/null +++ b/profiles/targets/desktop/package.use/xmlto @@ -0,0 +1 @@ +app-text/xmlto text diff --git a/profiles/targets/desktop/package.use/zlib b/profiles/targets/desktop/package.use/zlib new file mode 100644 index 0000000..b934da8 --- /dev/null +++ b/profiles/targets/desktop/package.use/zlib @@ -0,0 +1 @@ +sys-libs/zlib minizip diff --git a/profiles/targets/make.defaults b/profiles/targets/make.defaults new file mode 100644 index 0000000..29a6e03 --- /dev/null +++ b/profiles/targets/make.defaults @@ -0,0 +1,9 @@ +CFLAGS="-O2 -pipe -march=native" +CXXFLAGS="${CFLAGS}" +CHOST="x86_64-pc-linux-gnu" + +INPUT_DEVICES="libinput" +GRUB_PLATFORMS="efi-64 pc" +ABI_X86="32 64" + +PLOICY_TYPES="mcs" diff --git a/profiles/targets/package.accept_keywords/kodi b/profiles/targets/package.accept_keywords/kodi new file mode 100644 index 0000000..fc59154 --- /dev/null +++ b/profiles/targets/package.accept_keywords/kodi @@ -0,0 +1,2 @@ +media-plugins/kodi-vfs-sftp ~amd64 +media-tv/kodi ~amd64 diff --git a/profiles/targets/package.accept_keywords/printer b/profiles/targets/package.accept_keywords/printer new file mode 100644 index 0000000..7aa4c59 --- /dev/null +++ b/profiles/targets/package.accept_keywords/printer @@ -0,0 +1 @@ +net-print/samsung-unified-driver ~amd64 diff --git a/profiles/targets/package.accept_keywords/spotify b/profiles/targets/package.accept_keywords/spotify new file mode 100644 index 0000000..58b94b1 --- /dev/null +++ b/profiles/targets/package.accept_keywords/spotify @@ -0,0 +1 @@ +media-sound/spotify ~amd64 diff --git a/profiles/targets/package.unmask/pythonmagick b/profiles/targets/package.unmask/pythonmagick new file mode 100644 index 0000000..af16cd8 --- /dev/null +++ b/profiles/targets/package.unmask/pythonmagick @@ -0,0 +1 @@ +dev-python/pythonmagick diff --git a/profiles/targets/package.use/default b/profiles/targets/package.use/default new file mode 100644 index 0000000..e69de29