diff options
Diffstat (limited to 'net-misc/ris-linux')
-rw-r--r-- | net-misc/ris-linux/Manifest | 8 | ||||
-rw-r--r-- | net-misc/ris-linux/files/binlsrv.confd | 2 | ||||
-rw-r--r-- | net-misc/ris-linux/files/binlsrv.initd | 30 | ||||
-rw-r--r-- | net-misc/ris-linux/files/setup.py | 9 | ||||
-rw-r--r-- | net-misc/ris-linux/metadata.xml | 7 | ||||
-rw-r--r-- | net-misc/ris-linux/ris-linux-0.4-r1.ebuild | 37 |
6 files changed, 93 insertions, 0 deletions
diff --git a/net-misc/ris-linux/Manifest b/net-misc/ris-linux/Manifest new file mode 100644 index 000000000000..e195f8c36470 --- /dev/null +++ b/net-misc/ris-linux/Manifest @@ -0,0 +1,8 @@ +AUX binlsrv.confd 90 SHA256 6406706adacbe1dcfa106afa012fd6c1ec81834d51931248022529333ab609ba SHA512 82ba3c67e5a4df2092bc4abc7ad27d70f3a315551ac871d3019f0c37e7aa6360893dfcf615def300963d1a48e66f19da79aec2444fc366fb1ee6e19ecdd3c8d0 WHIRLPOOL 8bf6352d8421b8a2eb30677dbcd375e880c4d3ee28ed39a09a3f0fa501d5aabc5ff61121798801b0c9876e76232b9df5dd8693bc2e762ae7d7579b2dfc1e95a7 +AUX binlsrv.initd 775 SHA256 650ec091e938672da2276a0abe3e3f313c098a9584f369b608e66403082391b4 SHA512 2555500d462907daa6c6027b30fb67a32d453dd611ee5a9e71e5ed8cdd2943dbb5ebc0c1ce7de7ce70f0c1158afe475a56156da4ca611c8bd30ea5b95d546419 WHIRLPOOL bf6b0db6a0f1d2e23fbe3444e9ec9a0802163293844afeb4727d573a4530c6b6062e32f2634365404999dc9553635092541b5f9da18502b48427ac63528e55f6 +AUX setup.py 204 SHA256 67d2ac20a5ec88a2ebcaae642a49a36485eaea318ec75d4fb6aade5199592953 SHA512 a2e3482ae7d4cec63230d0e787c6ff6af8fc749d84aa74de51152bc5f8aa5f9d29b6578a82141fdbc15c61786d7e8a9cfdd14b885d5ed2b62f30033548a4f240 WHIRLPOOL 5f63b0d9543e8a57c49d10dd34c9dbcab4a86dc3f635bdb9f0b57cf6892039a35abb49067db362340fb36385532cf0cb3499d9a8953ca09007f7471eb0128e64 +DIST ris-linux-0.4.tar.gz 21634 SHA256 196c7441f498154d1ae41ef4f1e5107296b7de39f345c763ccce2e913432ae19 SHA512 e9eea14b45c060844e22dc3baa9cd15e7d202bcb3cb8b069b084115b05c0700bd563ed6322d675eee9baf72e8d530429d0c3137386377b6785ebc9007dbfd040 WHIRLPOOL 4607b013c46c4e657f3cac8c4a3bace495b3a7810059af2e5dda3cde04c984444cfe5074a1f86cfce48bd6546c6db79251c74f0bd97fe69744e041fbfea36989 +EBUILD ris-linux-0.4-r1.ebuild 790 SHA256 4ebdc6c53311e808b146de4376325028c45453dba4625f91fdbe7408e50830a8 SHA512 dad19b76fa6bfb7a5bd30c7a9f3b7df62b84804325fb4fe61e118d61e680f5597df6502cfb727671354eaf852a4f25cdb34292841d2b587d5c8390c0c7a6e406 WHIRLPOOL 9622b315d72780882a7fbbd123b8bbd7fff584afe06584679badc280cf5e1649e1726f81ca13fcdc668dcd1b071375cb2cdd7b70ee5d90eea2e0f580bdb05364 +MISC ChangeLog 2377 SHA256 8feda16dc80f81d7766651a0fc8e77deab4877dcaba5aa5c2035882d177c3b61 SHA512 fcc7c8e067b533ecd5341336dcbee6bfa2541f6047b99b807133b478927e46935c1e136060ec231e0ce59727e9c85f22af6bba72918a4c5d0f301bc3545163ea WHIRLPOOL 80f022fcf4b5cffe66f97cfb1d2e6053dc2d2c25878555d550efa8320118e2ecaa88cb8b6c05404b958980ae6a773f3e81ec519f2cfd4248be88daafc5fb571c +MISC ChangeLog-2015 749 SHA256 d0eecd5e84d38a74fa982e9637f0fe102cd8012f4f60bb9a7ef0f248c7f7dfd7 SHA512 659072f631f741f0c515a45b91fd23dd311664a0296734e82f2b054cd31dee11efb3babf9a85e6d86b7acf8aee51d8d878857b348094a10a06ce890b7d8fc573 WHIRLPOOL 07366709a1bfa4c714063f13aa1dfcdfe80e73ab7068523280f34090a9c419b2d1cb93cdcd7f08058d620d004953eed35bb08899d87a70335beb749a6b548f25 +MISC metadata.xml 217 SHA256 f9a93190de2192c1681405ee6c3a7fc40f08c31fd1b80ecc61ad3cd990fc2f90 SHA512 892fa1b0f9fef66cd02147277c70b886bfef9d36817e024d35216a14bd1a2bd640ffb8d6f57bed87cd06b7c4cce17eb3c8fe4255cdc62972b551c73509c0dfe7 WHIRLPOOL 5a313d57f3e859bd9ebe7b03cdb1cff1892096b07e29096f6f6f2b62e746118e4017552e7bed4cb6e01d9eb5d4601b190340ce12da7d21c824b9fec88c75597f diff --git a/net-misc/ris-linux/files/binlsrv.confd b/net-misc/ris-linux/files/binlsrv.confd new file mode 100644 index 000000000000..2e6ed9f9090f --- /dev/null +++ b/net-misc/ris-linux/files/binlsrv.confd @@ -0,0 +1,2 @@ +#Specify here path to directory with 'devlist.cache' file +INFILE_PATH="/var/lib/ris/binl" diff --git a/net-misc/ris-linux/files/binlsrv.initd b/net-misc/ris-linux/files/binlsrv.initd new file mode 100644 index 000000000000..f247a39db4ed --- /dev/null +++ b/net-misc/ris-linux/files/binlsrv.initd @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting binlsrv" + if [ -z "$INFILE_PATH" ]; then + eerror "Path to devlist.cache not set, please set \$INFILE_PATH in /etc/conf.d/binlsrv" + return 1 + fi + if [ ! -e "$INFILE_PATH/devlist.cache" ]; then + eerror "devlist.cache not generated, please make it with infparser.py" + fi + + start-stop-daemon --start -i --exec /usr/bin/binlsrv.py --background \ + --make-pidfile --pidfile /var/run/binlsrv.pid --chdir "$INFILE_PATH" \ + --stdout /var/log/binlsrv.log + + eend $? +} + +stop() { + ebegin "Stopping binlsrv" + start-stop-daemon --stop -i --exec /usr/bin/binlsrv.py --pidfile /var/run/binlsrv.pid + eend $? +}
\ No newline at end of file diff --git a/net-misc/ris-linux/files/setup.py b/net-misc/ris-linux/files/setup.py new file mode 100644 index 000000000000..0873f2512c99 --- /dev/null +++ b/net-misc/ris-linux/files/setup.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup( + name = 'ris-linux', + version = 'VERSION', + scripts = [ 'binlsrv.py', 'decode.py', 'infparser.py', 'fixloader.py', 'modldr.py' ] +) diff --git a/net-misc/ris-linux/metadata.xml b/net-misc/ris-linux/metadata.xml new file mode 100644 index 000000000000..8f93e4dab3d6 --- /dev/null +++ b/net-misc/ris-linux/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>maksbotan@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-misc/ris-linux/ris-linux-0.4-r1.ebuild b/net-misc/ris-linux/ris-linux-0.4-r1.ebuild new file mode 100644 index 000000000000..7d7a4e50dfbf --- /dev/null +++ b/net-misc/ris-linux/ris-linux-0.4-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 + +DESCRIPTION="BINL server to doing Windows(r) RIS" +HOMEPAGE="http://oss.netfarm.it/guides/pxe.php" +SRC_URI="http://oss.netfarm.it/guides/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + || ( net-ftp/atftp net-ftp/tftp-hpa ) + net-misc/dhcp + net-fs/samba + sys-boot/syslinux" + +python_prepare_all(){ + sed "s:VERSION:${PV}:" "${FILESDIR}"/setup.py > "${S}"/setup.py + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + newinitd "${FILESDIR}"/binlsrv.initd binlsrv + newconfd "${FILESDIR}"/binlsrv.confd binlsrv +} |