Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
DESCRIPTION="A Python interactive packet manipulation program for mastering the network" |
7 |
DESCRIPTION="A Python interactive packet manipulation program for mastering the network" |
8 |
HOMEPAGE="http://www.secdev.org/projects/scapy/" |
8 |
HOMEPAGE="http://www.secdev.org/projects/scapy/" |
9 |
SRC_URI="http://www.secdev.org/projects/scapy/files/${P}.tar.gz" |
9 |
BASEVER=`echo ${P} | sed "s/\.[0-9]*$//"` |
|
|
10 |
SRC_URI="http://www.secdev.org/projects/scapy/files/${BASEVER}.tar.gz http://www.secdev.org/projects/scapy/all/${P}.py" |
11 |
S=${WORKDIR}/${BASEVER} |
10 |
|
12 |
|
11 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
14 |
SLOT="0" |
Lines 24-35
Link Here
|
24 |
|
26 |
|
25 |
src_install() { |
27 |
src_install() { |
26 |
exeinto /usr/bin |
28 |
exeinto /usr/bin |
27 |
newexe scapy.py scapy |
29 |
newexe ${DISTDIR}/${P}.py scapy |
28 |
|
30 |
|
29 |
# also install scapy as a importable python module |
31 |
# also install scapy as a importable python module |
30 |
python_version |
32 |
python_version |
31 |
insinto /usr/$(get_libdir)/python${PYVER}/site-packages |
33 |
insinto /usr/$(get_libdir)/python${PYVER}/site-packages |
32 |
doins scapy.py |
34 |
newins ${DISTDIR}/${P}.py scapy.py |
33 |
|
35 |
|
34 |
insinto /etc |
36 |
insinto /etc |
35 |
doins ${FILESDIR}/ethertypes |
37 |
doins ${FILESDIR}/ethertypes |