Annotation of /smage/trunk/deprecated/usbip/usbip-0.1.8-r1.smage2
Parent Directory | Revision Log
Revision 3240 -
(hide annotations)
(download)
Mon Sep 19 17:58:39 2011 UTC (13 years ago) by niro
Original Path: smage/trunk/extras/usbip/usbip-0.1.8-r1.smage2
File size: 1538 byte(s)
Mon Sep 19 17:58:39 2011 UTC (13 years ago) by niro
Original Path: smage/trunk/extras/usbip/usbip-0.1.8-r1.smage2
File size: 1538 byte(s)
auto added: ver bump to 0.1.8-r1
1 | niro | 3240 | # $Id$ |
2 | |||
3 | PNAME="usbip" | ||
4 | PVER="0.1.8" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | |||
9 | DESCRIPTION="USB Enumerator over TCP/IP." | ||
10 | HOMEPAGE="http://usbip.sourceforge.net/" | ||
11 | |||
12 | DEPEND="dev-libs/glib2-2.8 | ||
13 | >= sys-fs/sysfsutils-2.1" | ||
14 | |||
15 | SDEPEND=">= sys-dev/autoconf-9 | ||
16 | >= sys-dev/automake-4" | ||
17 | |||
18 | # file was extracted from staging dir of the linux-3.0 sources | ||
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}/src" | ||
21 | |||
22 | ALX_ONLY_KEEP="etc usr/sbin usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" | ||
23 | sminclude mtools alx-split | ||
24 | |||
25 | SRC_URI=( | ||
26 | sourceforge://${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/usbipd.rc | ||
29 | mirror://${PNAME}/usbipdevd2 | ||
30 | mirror://${PNAME}/usbipdevd2.confd | ||
31 | mirror://${PNAME}/usbipdevd.rc | ||
32 | ) | ||
33 | |||
34 | UP2DATE="updatecmd_sourceforge ${PNAME}" | ||
35 | |||
36 | # TODO: obsolete dev daemon with a udev rule | ||
37 | |||
38 | src_prepare() | ||
39 | { | ||
40 | munpack ${SRCFILE} || die | ||
41 | cd ${SRCDIR} | ||
42 | |||
43 | mautoreconf || die | ||
44 | } | ||
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | cd ${SRCDIR} | ||
49 | mconfigure --with-usbids-dir=/usr/share/misc || die | ||
50 | } | ||
51 | |||
52 | alx_generic_src_install() | ||
53 | { | ||
54 | cd ${SRCDIR} | ||
55 | mmake DESTDIR=${BINDIR} install || die | ||
56 | |||
57 | # install daemons, rc scripts and configuration | ||
58 | minstallrc usbipd.rc usbipd || die | ||
59 | minstallrc usbipdevd.rc usbipdevd || die | ||
60 | minstallconf usbipdevd2.confd usbipdevd || die | ||
61 | minstalldir /usr/sbin || die | ||
62 | minstallexec -s usbipdevd2 /usr/sbin/usbipdevd || die | ||
63 | } | ||
64 | |||
65 | preinstall() | ||
66 | { | ||
67 | add_conf_prot_mask /etc/rc.d/init.d | ||
68 | add_conf_prot_ignore /etc/conf.d/usbipdevd | ||
69 | } | ||
70 | |||
71 | postinstall() | ||
72 | { | ||
73 | mstartservice usbipd | ||
74 | mstartservice usbipdevd | ||
75 | } | ||
76 | |||
77 | postremove() | ||
78 | { | ||
79 | mstopservice usbipd | ||
80 | mstopservice usbipdevd | ||
81 | } |