build scripts for ubuntu NetworkManager packages
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
strongswan-nm (4.2.6.1-1) hardy; urgency=low
|
||||
|
||||
* new upstream sources with GPL code only
|
||||
|
||||
-- Martin Willi <[email protected]> Wed, 27 Aug 2008 14:39:33 +0200
|
||||
|
||||
strongswan-nm (4.2.6-3) hardy; urgency=low
|
||||
|
||||
* re-upload
|
||||
|
||||
-- Martin Willi <[email protected]> Tue, 26 Aug 2008 16:59:33 +0200
|
||||
|
||||
strongswan-nm (4.2.6-2) hardy; urgency=low
|
||||
|
||||
* Initial NetworkManager build
|
||||
|
||||
-- Martin Willi <[email protected]> Tue, 26 Aug 2008 11:42:52 +0200
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Source: strongswan-nm
|
||||
Section: net
|
||||
Priority: extra
|
||||
Maintainer: Martin Willi <[email protected]>
|
||||
Standards-Version: 3.7.3.0
|
||||
Build-Depends: debhelper (>= 4.1.16), libssl-dev (>= 0.9.8), network-manager-dev (>= 0.7~~svn20080818), libnm-glib-dev (>= 0.7~~svn20080818), libpam0g-dev
|
||||
|
||||
Package: strongswan-nm
|
||||
Architecture: any
|
||||
Depends: libssl0.9.8, network-manager (>= 0.7~~svn20080818)
|
||||
Conflicts: freeswan, openswan, strongswan
|
||||
Replaces: strongswan
|
||||
Description: strongSwan IPSec VPN client
|
||||
A build of the strongSwan IPSec keying daemon intended for use with
|
||||
NetworkManager as a road-warrior client.
|
||||
@@ -0,0 +1,10 @@
|
||||
This package was debianized by Martin Willi <[email protected]>
|
||||
Tue, 26 Aug 2008 12:35:50 +0200
|
||||
|
||||
It has been created from a stripped SVN checkout containing GPL sources only.
|
||||
|
||||
This project has multiple authors, please see the file CREDITS for details.
|
||||
|
||||
Tthis package is completely under the GNU General Public License v2,
|
||||
see COPYING.
|
||||
|
||||
Executable
+59
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
package = strongswan-nm
|
||||
docdir = debian/tmp/usr/share/doc/$(package)
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing -g
|
||||
INSTALL_PROGRAM = install
|
||||
|
||||
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
||||
CFLAGS += -O2
|
||||
endif
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
INSTALL_PROGRAM += -s
|
||||
endif
|
||||
|
||||
build:
|
||||
$(checkdir)
|
||||
./configure --disable-aes --disable-des --disable-md5 --disable-sha1 \
|
||||
--disable-sha2 --disable-fips-prf --disable-gmp --disable-stroke \
|
||||
--disable-pluto --disable-tools --disable-updown --enable-openssl \
|
||||
--enable-nm --enable-eap-gtc \
|
||||
--sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
|
||||
$(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"
|
||||
touch build
|
||||
|
||||
clean:
|
||||
$(checkdir)
|
||||
rm -f build
|
||||
[ ! -f Makefile ] || $(MAKE) clean
|
||||
rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
|
||||
|
||||
binary-indep: checkroot build
|
||||
$(checkdir)
|
||||
|
||||
binary-arch: checkroot build
|
||||
rm -rf debian/tmp
|
||||
install -d debian/tmp/DEBIAN $(docdir)
|
||||
$(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \
|
||||
DESTDIR=$$(pwd)/debian/tmp install
|
||||
cp -a NEWS debian/copyright $(docdir)
|
||||
cp -a debian/changelog $(docdir)/changelog.Debian
|
||||
cd $(docdir) && gzip -9 changelog.Debian
|
||||
dpkg-gencontrol -isp
|
||||
chown -R root:root debian/tmp
|
||||
dpkg --build debian/tmp ..
|
||||
|
||||
define checkdir
|
||||
test -f src/charon/daemon.c -a -f debian/rules
|
||||
endef
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
|
||||
checkroot:
|
||||
$(checkdir)
|
||||
test $$(id -u) = 0
|
||||
|
||||
.PHONY: binary binary-arch binary-indep clean checkroot
|
||||
|
||||
Reference in New Issue
Block a user