summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-01-11 21:29:35 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-01-11 21:29:35 +0000
commitd2e3c8e01701495cf6e7ba88b16b819e29e1abd3 (patch)
treecedba7bb92663b57ecb7a0863ef68877c8fd34b0 /media-tv/gentoo-vdr-scripts
parentFix DEPEND/RDEPEND for modular-X. (diff)
downloadhistorical-d2e3c8e01701495cf6e7ba88b16b819e29e1abd3.tar.gz
historical-d2e3c8e01701495cf6e7ba88b16b819e29e1abd3.tar.bz2
historical-d2e3c8e01701495cf6e7ba88b16b819e29e1abd3.zip
backported permission-change code to stable ebuild
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'media-tv/gentoo-vdr-scripts')
-rw-r--r--media-tv/gentoo-vdr-scripts/ChangeLog8
-rw-r--r--media-tv/gentoo-vdr-scripts/Manifest16
-rw-r--r--media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2_alpha3-r11
-rw-r--r--media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3-r1.ebuild81
-rw-r--r--media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild4
5 files changed, 105 insertions, 5 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog
index b6e59c0fd181..5782637725ec 100644
--- a/media-tv/gentoo-vdr-scripts/ChangeLog
+++ b/media-tv/gentoo-vdr-scripts/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-tv/gentoo-vdr-scripts
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.33 2006/01/08 17:50:47 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.34 2006/01/11 21:29:35 zzam Exp $
+
+*gentoo-vdr-scripts-0.2_alpha3-r1 (11 Jan 2006)
+
+ 11 Jan 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +gentoo-vdr-scripts-0.2_alpha3-r1.ebuild:
+ backported permission-change code to stable ebuild
08 Jan 2006; Matthias Schwarzott <zzam@gentoo.org>
-gentoo-vdr-scripts-0.1.ebuild, -gentoo-vdr-scripts-0.2_alpha1.ebuild,
diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest
index a093df2d2a2d..01973a72d034 100644
--- a/media-tv/gentoo-vdr-scripts/Manifest
+++ b/media-tv/gentoo-vdr-scripts/Manifest
@@ -1,12 +1,24 @@
-MD5 e9ecdbd396c5c0c4137373f8712fc356 ChangeLog 6630
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 5ced8395a7f3a4cf8bea2390930ec215 ChangeLog 6830
MD5 f138047c23306296259dd46c6a272ef3 files/digest-gentoo-vdr-scripts-0.2 70
MD5 e4a3058940d9d891326a79470f2fabc7 files/digest-gentoo-vdr-scripts-0.2.1 72
MD5 9f897007bb382134186cb6286de300ac files/digest-gentoo-vdr-scripts-0.2.2 72
MD5 2ecb98838292de6b7446a53a432753b7 files/digest-gentoo-vdr-scripts-0.2_alpha3 77
+MD5 2ecb98838292de6b7446a53a432753b7 files/digest-gentoo-vdr-scripts-0.2_alpha3-r1 77
MD5 cc3806f7a39109c105d0603dc651edb4 files/gentoo-vdr-scripts-0.1_alpha1-merge-commands.diff 1785
MD5 87da33b96f1f2cd1a018545f67f8d0e6 files/gentoo-vdr-scripts-0.1_alpha4-video-parameter.diff 1275
MD5 70c5a68412b749fc94cc9aadc0bfcce8 gentoo-vdr-scripts-0.2.1.ebuild 2662
MD5 e12a2b2a8003823c9076c596c30d2b25 gentoo-vdr-scripts-0.2.2.ebuild 2662
MD5 a04097c3e8907a90c666d8ea89e5c50b gentoo-vdr-scripts-0.2.ebuild 2625
-MD5 8daf118a9439f993f781876b1ba712e7 gentoo-vdr-scripts-0.2_alpha3.ebuild 1428
+MD5 13e234686ebbf2aa0dc505116c8785fe gentoo-vdr-scripts-0.2_alpha3-r1.ebuild 2056
+MD5 29171cd7b088726d963593aec48b45ce gentoo-vdr-scripts-0.2_alpha3.ebuild 1428
MD5 a973dfa1638779880ca99f1c1435cac7 metadata.xml 259
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDxXjgZfSl1Kp5KmoRAsb+AJsExEZ7lpH2OVAQ6RiZVKHhXfh8fgCgkeK4
+TwIvzLbGYzFxRyNRqYuF/lo=
+=S27c
+-----END PGP SIGNATURE-----
diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2_alpha3-r1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2_alpha3-r1
new file mode 100644
index 000000000000..f55689eafe9e
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2_alpha3-r1
@@ -0,0 +1 @@
+MD5 81a416898a25b55299935a6faad5e03f gentoo-vdr-scripts-0.2_alpha3.tgz 15155
diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3-r1.ebuild
new file mode 100644
index 000000000000..c0bbb67bdf2d
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3-r1.ebuild,v 1.1 2006/01/11 21:29:35 zzam Exp $
+
+inherit eutils
+
+IUSE="nvram"
+
+SRC_URI="http://dev.gentoo.org/~zzam/distfiles/${P}.tgz"
+DESCRIPTION="scripts necessary for use of vdr as a set-top-box"
+HOMEPAGE="http://www.gentoo.org/"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc x86"
+
+DEPEND="nvram? ( x86? ( sys-power/nvram-wakeup ) )"
+
+pkg_setup() {
+ enewgroup vdr
+ if getent passwd vdr >/dev/null 2>&1; then
+ einfo "Modifying user vdr"
+ usermod -g vdr -s /bin/bash vdr
+ local grp
+ for grp in video audio cdrom; do
+ gpasswd -a vdr ${grp} >/dev/null
+ done
+ else
+ enewuser vdr -1 /bin/bash ${VDR_HOME} vdr,video,audio,cdrom
+ fi
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+ dodoc README TODO ChangeLog
+
+ cd ${S}/usr/lib/vdr/shutdown
+ insinto /usr/lib/vdr/shutdown
+ doins wakeup-acpi.sh
+ if use nvram; then
+ if use x86; then
+ doins wakeup-nvram.sh
+ else
+ ewarn "nvram-wakeup is not available on this architecture."
+ fi
+ fi
+
+ keepdir /var/vdr/video/dvd-images
+ chown -R vdr:vdr ${D}/etc/vdr ${D}/var/vdr
+}
+
+pkg_preinst() {
+ local owner
+ local d
+ for d in /etc/vdr /var/vdr; do
+ if [[ -d ${d} ]]; then
+ owner=$(stat ${d} -c "%U")
+ if [[ ${owner} != vdr ]]; then
+ einfo "Changing ownership of ${d}"
+ chown -R vdr:vdr ${d}
+ fi
+ fi
+ done
+}
+
+pkg_postinst() {
+ einfo "This release has included"
+ einfo "shutdown/wakeup-functions."
+ einfo
+ einfo "Please add this line to your /etc/sudoers-file"
+ einfo " vdr ALL=NOPASSWD:/usr/lib/vdr/bin/vdrshutdown-really.sh"
+ einfo
+ ewarn "The default video directory was moved to /var/vdr/video"
+ ewarn "If you have your video directory anywhere else, then"
+ ewarn "change the setting VIDEO in the file /etc/conf.d/vdr."
+ ewarn
+ if use x86 && use !nvram; then
+ ewarn "nvram wakeup is now optional."
+ ewarn "To make use of it enable the use flag nvram."
+ fi
+}
diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild
index 29793f8cff9a..37e1e8fa2a0e 100644
--- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild
+++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild,v 1.3 2005/12/15 17:06:49 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2_alpha3.ebuild,v 1.4 2006/01/11 21:29:35 zzam Exp $
inherit eutils