forked from ntop/ipt_geofence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
37 lines (32 loc) · 1.13 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Change it according to your setup
#
IPT_GEOFENCE_HOME=$(PWD)/../..
IPT_GEOFENCE_BUILD=${IPT_GEOFENCE_HOME}/packages/debian/ipt-geofence
all: clean pkg
pkg:
cd ../..; make; cd -
if test -e "${IPT_GEOFENCE_BUILD}"; then /bin/rm -fr ${IPT_GEOFENCE_BUILD}; fi
mkdir -p ${IPT_GEOFENCE_BUILD}/usr/sbin
mkdir -p ${IPT_GEOFENCE_BUILD}/usr/share/doc/ipt_geofence/examples
install -m755 ../../ipt_geofence ${IPT_GEOFENCE_BUILD}/usr/sbin/
strip ${IPT_GEOFENCE_BUILD}/usr/sbin/ipt_geofence
install -m644 ../../ipt_config_utils/* ${IPT_GEOFENCE_BUILD}/usr/share/doc/ipt_geofence/examples/
@/bin/rm -f ../ipt_geofence*.deb
dpkg-buildpackage -rfakeroot -d -us -uc @BUILDPACKAGE_EXTRA@
dpkg-sig --sign builder -k D1EB60BE ../ipt-geofence_*deb
@\rm -f ../ipt-geofence_*dsc ../ipt-geofence_*.gz ../ipt-geofence_*changes
@/bin/mv ../ipt-geofence_*deb .
@echo
@echo "Package built."
@/bin/ls ipt-geofence_*deb
@echo "-------------------------------"
-dpkg -I ipt-geofence_*deb
-dpkg --contents ipt-geofence_*deb
@echo "-------------------------------"
distclean:
echo "dummy distclean"
install:
echo "dummy install"
clean:
rm -rf *~ ipt-geofence_*