summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2010-07-20 22:04:00 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2010-07-20 22:04:00 +0000
commit0f9ca3e0e9eb2f20b1a43cf3deaa24294c935dfc (patch)
treecc10155d059a5ab721a524104ac1e664ffa43841 /sys-apps/pcfclock
parentstable x86, bug 329125 (diff)
downloadgentoo-2-0f9ca3e0e9eb2f20b1a43cf3deaa24294c935dfc.tar.gz
gentoo-2-0f9ca3e0e9eb2f20b1a43cf3deaa24294c935dfc.tar.bz2
gentoo-2-0f9ca3e0e9eb2f20b1a43cf3deaa24294c935dfc.zip
added amd64 keyword, fixed configure for newer kernels. solving bug #321083.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/pcfclock')
-rw-r--r--sys-apps/pcfclock/ChangeLog11
-rw-r--r--sys-apps/pcfclock/files/pcfclock-0.44-configure.diff12
-rw-r--r--sys-apps/pcfclock/pcfclock-0.44-r6.ebuild54
3 files changed, 75 insertions, 2 deletions
diff --git a/sys-apps/pcfclock/ChangeLog b/sys-apps/pcfclock/ChangeLog
index 1af08476667b..006629974dcc 100644
--- a/sys-apps/pcfclock/ChangeLog
+++ b/sys-apps/pcfclock/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/pcfclock
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/ChangeLog,v 1.11 2008/10/26 23:37:54 sbriesen Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/ChangeLog,v 1.12 2010/07/20 22:04:00 sbriesen Exp $
+
+*pcfclock-0.44-r6 (20 Jul 2010)
+
+ 20 Jul 2010; Stefan Briesenick <sbriesen@gentoo.org>
+ +pcfclock-0.44-r6.ebuild, +files/pcfclock-0.44-configure.diff:
+ added amd64 keyword, fixed configure for newer kernels. solving bug
+ #321083.
26 Oct 2008; Stefan Briesenick <sbriesen@gentoo.org>
-files/pcfclock-0.44-kernel-2.6.18.diff, -pcfclock-0.44-r3.ebuild:
diff --git a/sys-apps/pcfclock/files/pcfclock-0.44-configure.diff b/sys-apps/pcfclock/files/pcfclock-0.44-configure.diff
new file mode 100644
index 000000000000..0b929b416a3a
--- /dev/null
+++ b/sys-apps/pcfclock/files/pcfclock-0.44-configure.diff
@@ -0,0 +1,12 @@
+--- pcfclock-0.44.orig/configure 2004-05-17 19:14:08.000000000 +0200
++++ pcfclock-0.44/configure 2010-07-20 23:56:19.324330498 +0200
+@@ -2962,6 +2962,9 @@
+ if test -f $ac_dir/include/linux/autoconf.h; then
+ ac_file_linux_autoconf_h=$ac_dir/include/linux/autoconf.h
+ fi
++ if test -f $ac_dir/include/generated/autoconf.h; then
++ ac_file_linux_autoconf_h=$ac_dir/include/generated/autoconf.h
++ fi
+ if test x$ac_file_linux_version_h != x && test x$ac_file_linux_autoconf_h != x; then
+ have_linux=yes
+ break
diff --git a/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild b/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild
new file mode 100644
index 000000000000..3bfe19f3b122
--- /dev/null
+++ b/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild,v 1.1 2010/07/20 22:04:00 sbriesen Exp $
+
+EAPI="2"
+
+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="~amd64 ~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_prepare() {
+ epatch "${FILESDIR}/${P}-kernel-2.6.27.diff"
+ epatch "${FILESDIR}/${P}-configure.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
+}