added Makefile to build ubuntu PPA source packages
authorMartin Willi <martin@strongswan.org>
Mon, 16 Feb 2009 16:03:09 +0000 (16:03 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 16 Feb 2009 16:03:09 +0000 (16:03 -0000)
packages/network-manager-strongswan/Makefile [new file with mode: 0644]
packages/strongswan/Makefile [new file with mode: 0644]

diff --git a/packages/network-manager-strongswan/Makefile b/packages/network-manager-strongswan/Makefile
new file mode 100644 (file)
index 0000000..af0f3dc
--- /dev/null
@@ -0,0 +1,19 @@
+
+SOURCE:=../../src/charon/plugins/nm/gnome
+VERSION:=1.0.0
+
+source:        prepare
+       cd build/NetworkManager-strongswan-$(VERSION) && debuild -S
+
+prepare: clean
+       mkdir build
+       make -C $(SOURCE) dist-gzip
+       mv $(SOURCE)/NetworkManager-strongswan-$(VERSION).tar.gz build/network-manager-strongswan_$(VERSION).orig.tar.gz
+       tar -zxv -C build -f build/network-manager-strongswan_$(VERSION).orig.tar.gz
+       dch -b -v $(VERSION)
+       cp -R debian build/NetworkManager-strongswan-$(VERSION)
+
+clean:
+       rm -Rf build
+
+.PHONY:        source prepare clean
diff --git a/packages/strongswan/Makefile b/packages/strongswan/Makefile
new file mode 100644 (file)
index 0000000..11f166c
--- /dev/null
@@ -0,0 +1,19 @@
+
+SOURCE:=../../build/nm
+VERSION:=4.2.11
+
+source:        prepare
+       cd build/strongswan-$(VERSION) && debuild -S
+
+prepare: clean
+       mkdir build
+       make -C $(SOURCE) dist-gzip
+       mv $(SOURCE)/strongswan-$(VERSION).tar.gz build/strongswan_$(VERSION).orig.tar.gz
+       tar -zxv -C build -f build/strongswan_$(VERSION).orig.tar.gz
+       dch -b -v $(VERSION)
+       cp -R debian build/strongswan-$(VERSION)
+
+clean:
+       rm -Rf build
+
+.PHONY:        source prepare clean