3 package
= strongswan-nm
4 docdir
= debian
/tmp
/usr
/share
/doc
/$(package
)
7 CFLAGS
= -Wall
-Wno-format
-Wno-pointer-sign
-Wno-strict-aliasing
-g
8 INSTALL_PROGRAM
= install
10 ifeq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
13 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
19 .
/configure
--disable-aes
--disable-des
--disable-md5
--disable-sha1 \
20 --disable-sha2
--disable-fips-prf
--disable-gmp
--disable-stroke \
21 --disable-pluto
--disable-tools
--disable-updown
--enable-openssl \
22 --enable-nm
--enable-eap-gtc
--enable-agent \
23 --sysconfdir
=/etc
--prefix=/usr
--libexecdir
=/usr
/lib
24 $(MAKE
) CC
="$(CC)" CFLAGS
="$(CFLAGS)"
30 [ ! -f Makefile
] ||
$(MAKE
) clean
31 rm -rf
*~ debian
/tmp debian
/*~ debian
/files
* debian
/substvars
33 binary-indep
: checkroot build
36 binary-arch
: checkroot build
38 install -d debian
/tmp
/DEBIAN
$(docdir
)
39 $(MAKE
) INSTALL_PROGRAM
="$(INSTALL_PROGRAM)" \
40 DESTDIR
=$$(pwd
)/debian
/tmp
install
41 cp
-a NEWS debian
/copyright
$(docdir
)
42 cp
-a debian
/changelog
$(docdir
)/changelog.Debian
43 cd
$(docdir
) && gzip
-9 changelog.Debian
45 chown
-R root
:root debian
/tmp
46 dpkg
--build debian
/tmp ..
49 test -f src
/charon
/daemon.c
-a
-f debian
/rules
52 binary
: binary-indep binary-arch
58 .PHONY
: binary binary-arch binary-indep
clean checkroot