/[gentoo-x86]/sys-apps/pcfclock/pcfclock-0.44-r5.ebuild
Gentoo

Contents of /sys-apps/pcfclock/pcfclock-0.44-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Nov 16 16:32:53 2010 UTC (4 years, 1 month ago) by sbriesen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
removed old revision

(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)

1 sbriesen 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 sbriesen 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/pcfclock-0.44-r5.ebuild,v 1.1 2008/10/26 23:36:23 sbriesen Exp $
4 sbriesen 1.1
5     inherit eutils linux-mod
6    
7     DESCRIPTION="driver for the parallel port radio clock sold by Conrad Electronic"
8     HOMEPAGE="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html"
9     SRC_URI="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcfclock/${P}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~x86 ~ppc"
14     IUSE=""
15    
16     DEPEND="virtual/linux-sources"
17    
18     pkg_setup() {
19     CONFIG_CHECK="PARPORT"
20     linux-mod_pkg_setup
21     BUILD_TARGETS="all"
22     ECONF_PARAMS="--with-linux=${KERNEL_DIR}"
23     MODULE_NAMES="pcfclock(::${S}/linux)"
24     MODULESD_PCFCLOCK_ENABLED="yes"
25     MODULESD_PCFCLOCK_EXAMPLES=( "pcfclock parport=0,none,none" )
26     MODULESD_PCFCLOCK_ALIASES=(
27     "char-major-181 pcfclock"
28     "/dev/pcfclock0 char-major-181"
29     "/dev/pcfclock1 char-major-181"
30     "/dev/pcfclock2 char-major-181"
31     )
32     }
33    
34     src_unpack() {
35     unpack ${A}
36     cd "${S}"
37    
38     epatch "${FILESDIR}/${P}-kernel-2.6.27.diff"
39     convert_to_m "linux/Makefile.in"
40     }
41    
42     src_install() {
43     linux-mod_src_install
44     dosbin pcfdate/pcfdate
45     doman {linux,pcfdate}/*.[48]
46     dodoc AUTHORS ChangeLog NEWS README THANKS
47    
48     # Add configuration for udev
49     if [ -e "${ROOT}dev/.udev" ]; then
50     dodir /etc/udev/rules.d
51     echo 'KERNEL=="pcfclock*", NAME="%k", MODE="0444"' \
52     > "${D}/etc/udev/rules.d/55-${PN}.rules"
53     fi
54     }

  ViewVC Help
Powered by ViewVC 1.1.20