Contents of /smage/trunk/deprecated/usbip/usbip-0.1.7-r2.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: 1680 byte(s)
Fri Sep 8 09:29:10 2017 UTC (7 years ago) by niro
File size: 1680 byte(s)
-moved to 'deprecated'
1 | # $Id$ |
2 | |
3 | PNAME="usbip" |
4 | PVER="0.1.7" |
5 | PBUILD="r2" |
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 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | ALX_ONLY_KEEP="etc usr/bin usr/sbin usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" |
22 | sminclude mtools alx-split |
23 | |
24 | SRC_URI=( |
25 | sourceforge://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/usbipd.rc |
28 | mirror://${PNAME}/usbipdevd2 |
29 | mirror://${PNAME}/usbipdevd2.confd |
30 | mirror://${PNAME}/usbipdevd.rc |
31 | mirror://${PNAME}/${PNAME}-${PVER}-bind-parseable-output.patch |
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 | # add support for parseable output cmd '--list2' |
44 | mpatch ${PNAME}-${PVER}-bind-parseable-output.patch || die |
45 | |
46 | cd ${SRCDIR}/src |
47 | mautoreconf || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR}/src |
53 | mconfigure --with-usbids-dir=/usr/share/misc || die |
54 | } |
55 | |
56 | alx_generic_src_install() |
57 | { |
58 | cd ${SRCDIR}/src |
59 | mmake DESTDIR=${BINDIR} install || die |
60 | |
61 | # install daemons, rc scripts and configuration |
62 | minstallrc usbipd.rc usbipd || die |
63 | minstallrc usbipdevd.rc usbipdevd || die |
64 | minstallconf usbipdevd2.confd usbipdevd || die |
65 | minstalldir /usr/sbin || die |
66 | minstallexec -s usbipdevd2 /usr/sbin/usbipdevd || die |
67 | } |
68 | |
69 | preinstall() |
70 | { |
71 | add_conf_prot_mask /etc/rc.d/init.d |
72 | add_conf_prot_ignore /etc/conf.d/usbipdevd |
73 | } |
74 | |
75 | postinstall() |
76 | { |
77 | mstartservice usbipd |
78 | mstartservice usbipdevd |
79 | } |
80 | |
81 | postremove() |
82 | { |
83 | mstopservice usbipd |
84 | mstopservice usbipdevd |
85 | } |