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