summaryrefslogtreecommitdiff
path: root/app-misc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-12-21 13:06:01 +0000
committerV3n3RiX <venerix@rogentos.ro>2015-12-21 13:06:01 +0000
commitc06e543b8fd6a29bdbc3edf7fd76517bcf465a93 (patch)
tree0ddad53a96e4f828954ec1857b6e0c4e41983ba4 /app-misc
parentef4f0d477845f0eaaa1d8031c76c3a8c538b7be2 (diff)
port Gentoo livecd-tools to systemd
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/livecd-tools/Manifest1
-rw-r--r--app-misc/livecd-tools/files/livecd-tools-systemd.patch12
-rw-r--r--app-misc/livecd-tools/livecd-tools-2.1.ebuild42
3 files changed, 55 insertions, 0 deletions
diff --git a/app-misc/livecd-tools/Manifest b/app-misc/livecd-tools/Manifest
new file mode 100644
index 00000000..d3d19016
--- /dev/null
+++ b/app-misc/livecd-tools/Manifest
@@ -0,0 +1 @@
+DIST livecd-tools-2.1.tar.gz 11418 SHA256 5490c76d02ba571c2549114c8ea55cd36b78b3c065372c28e3bcd1ee2ad493e9 SHA512 feb8946c70baeb5b2e4adcc26f76f5fcf146353dcfcfd411cf68242512ab587b0c31c916c6f2a47ab35dcd4bb87ca879e5a91b95d8237c4ac3bbd9104f31e0c2 WHIRLPOOL 2199ef6cf7667cbdfa943c18c2e41ec5ba2f276a685eb2162fdb42552e80daf7bd53258932d8f80a38ee1995edfe3934884413358e4eef3059acc04047cf9121
diff --git a/app-misc/livecd-tools/files/livecd-tools-systemd.patch b/app-misc/livecd-tools/files/livecd-tools-systemd.patch
new file mode 100644
index 00000000..4f98ba82
--- /dev/null
+++ b/app-misc/livecd-tools/files/livecd-tools-systemd.patch
@@ -0,0 +1,12 @@
+diff -Nur a/livecd-functions.sh b/livecd-functions.sh
+--- a/livecd-functions.sh 2015-12-11 17:49:28.000000000 +0000
++++ b/livecd-functions.sh 2015-12-21 12:59:58.548466484 +0000
+@@ -8,7 +8,7 @@
+ # LIVECD_CONSOLE_PARITY -- console parity specified
+ # LIVECD_CONSOLE_DATABITS -- console databits specified
+
+-[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && [[ -e /etc/init.d/functions.sh ]] && source /etc/init.d/functions.sh
++[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && [[ -e /lib/gentoo/functions.sh ]] && source /lib/gentoo/functions.sh
+
+ livecd_parse_opt() {
+ case "$1" in
diff --git a/app-misc/livecd-tools/livecd-tools-2.1.ebuild b/app-misc/livecd-tools/livecd-tools-2.1.ebuild
new file mode 100644
index 00000000..ddea6131
--- /dev/null
+++ b/app-misc/livecd-tools/livecd-tools-2.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.gz"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
+
+DESCRIPTION="Gentoo LiveCD tools for autoconfiguration of hardware"
+HOMEPAGE="http://wolf31o2.org/projects/livecd-tools"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="systemd"
+
+RDEPEND="dev-util/dialog
+ net-dialup/mingetty
+ >=sys-apps/baselayout-2
+ sys-apps/gentoo-functions
+ sys-apps/systemd
+ sys-apps/pciutils
+ sys-apps/gawk
+ sys-apps/sed"
+
+pkg_setup() {
+ ewarn "This package is designed for use on the LiveCD only and will do"
+ ewarn "unspeakably horrible and unexpected things on a normal system."
+ ewarn "YOU HAVE BEEN WARNED!!!"
+}
+
+src_prepare() {
+ epatch ""${FILESDIR}"/"${PN}"-systemd.patch"
+}
+
+src_install() {
+ dosbin net-setup
+ into /
+ dosbin livecd-functions.sh
+}