diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2008-10-26 23:36:24 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2008-10-26 23:36:24 +0000 |
commit | ff24cc3185c3c5d24c4228465e8178dd7b8ffb65 (patch) | |
tree | d485c685d7d5044a5fcf455351e7f97faf5447e8 /sys-apps/pcfclock/pcfclock-0.44-r5.ebuild | |
parent | Stable for HPPA (bug #231292). (diff) | |
download | historical-ff24cc3185c3c5d24c4228465e8178dd7b8ffb65.tar.gz historical-ff24cc3185c3c5d24c4228465e8178dd7b8ffb65.tar.bz2 historical-ff24cc3185c3c5d24c4228465e8178dd7b8ffb65.zip |
revbump to support kernel 2.6.27, solving bug #241126.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686
Diffstat (limited to 'sys-apps/pcfclock/pcfclock-0.44-r5.ebuild')
-rw-r--r-- | sys-apps/pcfclock/pcfclock-0.44-r5.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-apps/pcfclock/pcfclock-0.44-r5.ebuild b/sys-apps/pcfclock/pcfclock-0.44-r5.ebuild new file mode 100644 index 000000000000..2ae5c344198f --- /dev/null +++ b/sys-apps/pcfclock/pcfclock-0.44-r5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/pcfclock-0.44-r5.ebuild,v 1.1 2008/10/26 23:36:23 sbriesen Exp $ + +inherit eutils linux-mod + +DESCRIPTION="driver for the parallel port radio clock sold by Conrad Electronic" +HOMEPAGE="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html" +SRC_URI="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcfclock/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="virtual/linux-sources" + +pkg_setup() { + CONFIG_CHECK="PARPORT" + linux-mod_pkg_setup + BUILD_TARGETS="all" + ECONF_PARAMS="--with-linux=${KERNEL_DIR}" + MODULE_NAMES="pcfclock(::${S}/linux)" + MODULESD_PCFCLOCK_ENABLED="yes" + MODULESD_PCFCLOCK_EXAMPLES=( "pcfclock parport=0,none,none" ) + MODULESD_PCFCLOCK_ALIASES=( + "char-major-181 pcfclock" + "/dev/pcfclock0 char-major-181" + "/dev/pcfclock1 char-major-181" + "/dev/pcfclock2 char-major-181" + ) +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-kernel-2.6.27.diff" + convert_to_m "linux/Makefile.in" +} + +src_install() { + linux-mod_src_install + dosbin pcfdate/pcfdate + doman {linux,pcfdate}/*.[48] + dodoc AUTHORS ChangeLog NEWS README THANKS + + # Add configuration for udev + if [ -e "${ROOT}dev/.udev" ]; then + dodir /etc/udev/rules.d + echo 'KERNEL=="pcfclock*", NAME="%k", MODE="0444"' \ + > "${D}/etc/udev/rules.d/55-${PN}.rules" + fi +} |