CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
wget: disabled rpath. Thanks j_v
[crossrootfs.git] / eudev / Pkgfile
CommitLineData
dda3fa49
VM
1# Description: Userspace device management daemon
2# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
64d2aeae 5# Depends on: kmod
dda3fa49
VM
6
7name=eudev
2bf78e1f
VM
8version=3.1.5
9release=2
dda3fa49
VM
10source=(http://dev.gentoo.org/~blueness/$name/$name-$version.tar.gz
11 81-crux.rules start_udev)
12
13build () {
14 # backup for next build of udevadm on host and use it to gnerate hwdb
15 cp -r $name-$version $name-$version-host
16
17 cd $name-$version
18 sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
19
dda3fa49
VM
20 ./configure --build=$CHOST \
21 --host=$CTARGET \
22 --prefix=/usr \
23 --sbindir=/sbin --bindir=/sbin \
24 --sysconfdir=/etc \
25 --with-rootprefix= \
26 --with-rootlibdir=/lib \
27 --libexecdir=/lib \
28 --disable-introspection \
dda3fa49 29 --disable-manpages \
3f5646a2
VM
30 --enable-split-usr \
31 --with-sysroot=$CLFS
32
dda3fa49 33 make CFLAGS="$CFLAGS -D_GNU_SOURCE"
09047a1b 34 make install DESTDIR=$PKG
2bf78e1f 35 make -C man install DESTDIR=$PKG
dda3fa49
VM
36
37 # udevadm build to use it later on host to generate hwdb
38 pushd $SRC/$name-$version-host
39 unset CC CXX AR AS RANLIB LD CFLAGS CXXFLAGS LDFLAGS
40
3f5646a2 41 autoreconf -vi
dda3fa49
VM
42 ./configure --prefix=/usr \
43 --sbindir=/sbin --bindir=/sbin \
44 --sysconfdir=/etc \
45 --with-rootprefix= \
46 --with-rootlibdir=/lib \
47 --libexecdir=/lib \
48 --disable-introspection \
dda3fa49 49 --disable-manpages \
2bf78e1f
VM
50 --enable-split-usr
51
52 make CFLAGS="$CFLAGS -L/usr/lib -I/usr/include -D_GNU_SOURCE"
dda3fa49 53
3f5646a2 54 cp src/udev/udevadm $PKGMK_WORK_DIR/
dda3fa49
VM
55 popd
56
57 # create binary hwdb
58 LD_LIBRARY_PATH=$PKG/lib \
3f5646a2 59 $PKGMK_WORK_DIR/udevadm hwdb --update --root=$PKG
dda3fa49
VM
60
61 # Devices
62 mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
63 mkdir -p $PKG/{lib,sbin,run}
64
65 # Add CRUX items
66 install -m 0755 $SRC/start_udev $PKG/sbin
67 install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
68}