Contents of /trunk/extras/firewalld/firewalld-0.2.1-r1.smage2
Parent Directory
|
Revision Log
Revision 11381 -
(show annotations)
(download)
Mon Mar 5 13:42:08 2012 UTC (12 years, 3 months ago) by niro
File size: 2290 byte(s)
Mon Mar 5 13:42:08 2012 UTC (12 years, 3 months ago) by niro
File size: 2290 byte(s)
auto added: ver bump to 0.2.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="firewalld" |
4 | PVER="0.2.1" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="firewalld firewalld-applet" |
8 | |
9 | PCAT="net-misc" |
10 | |
11 | DESCRIPTION="A firewall service daemon with D-BUS interface managing a dynamic firewall." |
12 | HOMEPAGE="https://fedorahosted.org/firewalld/" |
13 | |
14 | COMMON_DEPEND=">= dev-lang/python-2.7 |
15 | >= sys-apps/dbus-1.5 |
16 | >= dev-python/dbus-python-1 |
17 | >= net-misc/iptables-1.4 |
18 | >= net-misc/ebtables-2 |
19 | >= dev-python/python-slip-dbus-0.2.20" |
20 | |
21 | APPLET_DEPEND=">= x11-libs/gtk2+-2.24 |
22 | >= dev-python/pygtk-2.24" |
23 | |
24 | SDEPEND="${COMMON_DEPEND} |
25 | ${APPLET_DEPEND} |
26 | >= dev-util/intltool-0.50 |
27 | >= sys-dev/gettext-0.18 |
28 | >= dev-util/pkgconfig-0.25" |
29 | |
30 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
31 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
32 | |
33 | sminclude mtools cleanutils |
34 | |
35 | SRC_URI=( |
36 | https://fedorahosted.org/released/${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${PNAME}-${PVER}-confd.patch |
39 | mirror://${PNAME}/firewalld.service |
40 | ) |
41 | |
42 | UP2DATE="updatecmd 'https://fedorahosted.org/released/firewalld/?C=M;O=A' | lasttarball" |
43 | |
44 | split_info_firewalld() |
45 | { |
46 | DESCRIPTION="A firewall service daemon with D-BUS interface managing a dynamic firewall." |
47 | DEPEND="${COMMON_DEPEND}" |
48 | } |
49 | |
50 | split_info_firewalld-applet() |
51 | { |
52 | DESCRIPTION="Firewalld panel applet." |
53 | DEPEND="== net-misc/firewalld-${PVER} |
54 | ${APPLET_DEPEND}" |
55 | } |
56 | |
57 | src_prepare() |
58 | { |
59 | munpack ${SRCFILE} || die |
60 | cd ${SRCDIR} |
61 | |
62 | # use /etc/conf.d for service configuration |
63 | mpatch ${PNAME}-${PVER}-confd.patch || die |
64 | mautoreconf || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | |
71 | mconfigure --with-systemd-unitdir=/usr/lib/systemd/system || die |
72 | mmake || die |
73 | } |
74 | |
75 | src_install_firewalld() |
76 | { |
77 | cd ${SRCDIR} |
78 | mmake DESTDIR=${BINDIR} install || die |
79 | |
80 | # inject our firewalld.service |
81 | minstallunit firewalld.service || die |
82 | |
83 | # included with firewalld-applet |
84 | rm ${BINDIR}/usr/bin/firewall-applet || die |
85 | rm -r ${BINDIR}/usr/share/applications || die |
86 | rm -r ${BINDIR}/usr/share/icons || die |
87 | rm -r ${BINDIR}/usr/share/glib-2.0 || die |
88 | minstalldocs COPYING || die |
89 | } |
90 | |
91 | src_install_firewalld-applet() |
92 | { |
93 | cd ${SRCDIR} |
94 | mmake DESTDIR=${BINDIR} install || die |
95 | zapmost ${BINDIR} \ |
96 | usr/bin/firewall-applet \ |
97 | usr/share/applications \ |
98 | usr/share/icons \ |
99 | usr/share/glib-2.0 \ |
100 | || die |
101 | } |
102 | |
103 | postinstall_firewalld() |
104 | { |
105 | mstartunit firewalld.service |
106 | } |
107 | |
108 | postremove_firewalld() |
109 | { |
110 | mstopunit firewalld.service |
111 | } |