summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-03-05 15:26:05 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-03-05 15:26:05 +0000
commitddb727686568521a0ca63004e3077d84e3b05ced (patch)
treebaeaef78cc477ae3e1b2fc1cb59312e62cbb1b5b /media-tv/gentoo-vdr-scripts
parentAdded missing lib-compat DEP (diff)
downloadgentoo-2-ddb727686568521a0ca63004e3077d84e3b05ced.tar.gz
gentoo-2-ddb727686568521a0ca63004e3077d84e3b05ced.tar.bz2
gentoo-2-ddb727686568521a0ca63004e3077d84e3b05ced.zip
Version bumped.
(Portage version: 2.1_pre5-r4)
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.43
-rw-r--r--media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.4.ebuild108
4 files changed, 124 insertions, 11 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog
index 647cdb5a6c9f..8aeb1d85f3f2 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.43 2006/02/13 22:17:08 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.44 2006/03/05 15:26:05 zzam Exp $
+
+*gentoo-vdr-scripts-0.2.4 (05 Mar 2006)
+
+ 05 Mar 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +gentoo-vdr-scripts-0.2.4.ebuild:
+ Version bumped.
*gentoo-vdr-scripts-0.2.2-r1 (13 Feb 2006)
diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest
index d2b31d084f1c..a1b64ec3d67a 100644
--- a/media-tv/gentoo-vdr-scripts/Manifest
+++ b/media-tv/gentoo-vdr-scripts/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 97ff19054930b78e1b5f92253b48783c ChangeLog 8649
RMD160 1777a663857c47ec11e8aae9afaffef5a4e6df03 ChangeLog 8649
SHA256 1d45bb31edb12e5c56fa6518a3b0fd13223d8a42de3aa61e36ac09ef71dd48d4 ChangeLog 8649
@@ -22,6 +19,9 @@ SHA256 864fd0be170e089c02da9200bb5299d651a9938d24e3c048d984c61fd3cf57e6 files/di
MD5 6ab2a9a17ac258d5c9266ec41dde06b8 files/digest-gentoo-vdr-scripts-0.2.3-r1 262
RMD160 49c7fea92af5fc3042a69133d6e6d7bcfc77dcd3 files/digest-gentoo-vdr-scripts-0.2.3-r1 262
SHA256 864fd0be170e089c02da9200bb5299d651a9938d24e3c048d984c61fd3cf57e6 files/digest-gentoo-vdr-scripts-0.2.3-r1 262
+MD5 0ce9544712897d79a02b8ce7ff7859a7 files/digest-gentoo-vdr-scripts-0.2.4 262
+RMD160 470b8c6b7ffd409595905510024a7c8eb3e0c041 files/digest-gentoo-vdr-scripts-0.2.4 262
+SHA256 f0c9dcf2fcdc9de00cde11f0f3b8bd05f51af31c80195e8adc1ed8524a54b575 files/digest-gentoo-vdr-scripts-0.2.4 262
MD5 2ecb98838292de6b7446a53a432753b7 files/digest-gentoo-vdr-scripts-0.2_alpha3 77
RMD160 122da5c15699315c827863106b729cf04ec491ce files/digest-gentoo-vdr-scripts-0.2_alpha3 77
SHA256 a6e762be96c42c5db38b649e3c8363d46c1f05e8d2f66ab6525a1dfcd2e21757 files/digest-gentoo-vdr-scripts-0.2_alpha3 77
@@ -61,6 +61,9 @@ SHA256 f9d9192bc4747c99e0b60923a0989ec36a51f7361759868c20ab520accc328c6 gentoo-v
MD5 9261f4270cf42d99bc148cc069568c96 gentoo-vdr-scripts-0.2.3.ebuild 2784
RMD160 da5b7a4565b33e8bb3484b298f59f6cadfca00be gentoo-vdr-scripts-0.2.3.ebuild 2784
SHA256 49a7213ae5d02cb92c93f1b69753131602b1a6667d5e8cbfc1318030667be3ce gentoo-vdr-scripts-0.2.3.ebuild 2784
+MD5 82987da4fd49ac191ba22ee0907d1959 gentoo-vdr-scripts-0.2.4.ebuild 2643
+RMD160 269e66ddb6e4b78df4b14f556466a5d72b12f6ff gentoo-vdr-scripts-0.2.4.ebuild 2643
+SHA256 49a726d8ca186dd727e6445c4781fe78f4789c70d06b83271dc23d71fc0bbeef gentoo-vdr-scripts-0.2.4.ebuild 2643
MD5 1b50c10a7fd9a43654b499e2be7bdb20 gentoo-vdr-scripts-0.2.ebuild 2603
RMD160 891c70a0cce485fc3be5131277be9ce56b914b5f gentoo-vdr-scripts-0.2.ebuild 2603
SHA256 66422760021fd5aac6d361fdf44aa47dc88913f83ac59ee31686bf2ca5527c7c gentoo-vdr-scripts-0.2.ebuild 2603
@@ -73,10 +76,3 @@ SHA256 420b8bf78e363a73f6881c695c702cf8fc38b4e47e5a8bc4704f9a7f70bcc78c gentoo-v
MD5 a973dfa1638779880ca99f1c1435cac7 metadata.xml 259
RMD160 cc3cadd479ce9fb1e22948ac9f01f5725da33fa6 metadata.xml 259
SHA256 313f79a460281914a7f72cb73e91eec5f5cfec67c79f657743d49036d04951fe metadata.xml 259
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFD8QWjZfSl1Kp5KmoRAleBAJ9KO9hUPGuNKXYS5B+HhaZUGzqfXgCfQ47t
-d8WnzlMw5n05fqVzTxaLXIc=
-=AJC5
------END PGP SIGNATURE-----
diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2.4 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2.4
new file mode 100644
index 000000000000..b91a3a63771a
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2.4
@@ -0,0 +1,3 @@
+MD5 ea7aaa8763082c7b185b79de0fda8085 gentoo-vdr-scripts-0.2.4.tgz 21636
+RMD160 d0e8bf2c269c689f279f8f22bc5ff4bb09a5ba86 gentoo-vdr-scripts-0.2.4.tgz 21636
+SHA256 b0764cf9a17bb82bd599159ac8f0ed13c3a8d41c6c41861c50fbe38e30a4d619 gentoo-vdr-scripts-0.2.4.tgz 21636
diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.4.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.4.ebuild
new file mode 100644
index 000000000000..be9342e68d2c
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.4.ebuild
@@ -0,0 +1,108 @@
+# 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.4.ebuild,v 1.1 2006/03/05 15:26:05 zzam Exp $
+
+inherit eutils
+
+IUSE="nvram"
+
+SRC_URI="mirror://gentoo/${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"
+
+RDEPEND="nvram? ( x86? ( sys-power/nvram-wakeup ) )
+ app-admin/sudo"
+
+VDR_HOME=/var/vdr
+
+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
+
+ if use nvram; then
+ if use x86; then
+ make install-nvram DESTDIR="${D}" || die "make install-nvram failed"
+ else
+ ewarn "nvram-wakeup is not available on this architecture."
+ fi
+ fi
+
+ keepdir /var/vdr/shutdown-data
+ keepdir /var/vdr/merged-config-files
+ keepdir /var/vdr/video/dvd-images
+ chown vdr:vdr -R ${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
+}
+
+VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/lib/vdr/bin/vdrshutdown-really.sh"
+
+pkg_postinst() {
+ einfo
+ einfo "To make shutdown work add this line to /etc/sudoers"
+ einfo " $VDRSUDOENTRY"
+ einfo
+ einfo "or execute this command:"
+ einfo " emerge --config gentoo-vdr-scripts"
+ 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
+}
+
+pkg_config() {
+ if grep -q /usr/lib/vdr/bin/vdrshutdown-really.sh ${ROOT}/etc/sudoers; then
+ einfo "sudoers-entry for vdr already in place."
+ else
+ einfo "Adding this line to /etc/sudoers:"
+ einfo "+ ${VDRSUDOENTRY}"
+
+ cd ${T}
+ cat >sudoedit-vdr.sh <<-SUDOEDITOR
+ #!/bin/bash
+ echo "" >> \${1}
+ echo "${VDRSUDOENTRY}" >> \${1}
+ SUDOEDITOR
+ chmod a+x sudoedit-vdr.sh
+
+ VISUAL=${T}/sudoedit-vdr.sh visudo -f ${ROOT}/etc/sudoers || die "visudo failed"
+
+ einfo "Edited /etc/sudoers"
+ fi
+}
+