diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-02-04 17:58:55 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-02-04 18:02:49 +0100 |
commit | c2370e375518611b38edd69c5a5bf823ba12f3b2 (patch) | |
tree | 38a1d35fbb5b9dfbb1ef3a47871036d5622372a6 /packages | |
parent | a07c7ba2f671fe43c2d19b7c6281a45367033378 (diff) | |
download | strongswan-c2370e375518611b38edd69c5a5bf823ba12f3b2.tar.bz2 strongswan-c2370e375518611b38edd69c5a5bf823ba12f3b2.tar.xz |
maemo: Adding Makefiles to build Debian packages.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/maemo-applet/Makefile | 31 | ||||
-rw-r--r-- | packages/strongswan-maemo/Makefile | 31 |
2 files changed, 62 insertions, 0 deletions
diff --git a/packages/maemo-applet/Makefile b/packages/maemo-applet/Makefile new file mode 100644 index 000000000..1aa9febf0 --- /dev/null +++ b/packages/maemo-applet/Makefile @@ -0,0 +1,31 @@ +SOURCE:=../../src/frontends/maemo +BUILD:=build +VERSION:=$(shell sed -n 's/AC_INIT(.*,\s*\(.*\))/\1/p' $(SOURCE)/configure.ac) +TARGETVERSION:=$(VERSION) +ORIGNAME:=strongswan-applet-$(VERSION) +ORIGSRC:=$(BUILD)/strongswan-applet_$(TARGETVERSION).orig.tar.gz + +package: $(ORIGSRC) + debchange -b -v $(TARGETVERSION)-1 + cp -R debian $(BUILD)/$(ORIGNAME) + cd $(BUILD)/$(ORIGNAME) && \ + dpkg-buildpackage -rfakeroot -sa > /dev/null + +$(ORIGSRC): $(SOURCE)/Makefile | $(BUILD) + make -j -C $(SOURCE) dist-gzip > /dev/null + mv $(SOURCE)/$(ORIGNAME).tar.gz $(ORIGSRC) + tar -zx -C $(BUILD) -f $(ORIGSRC) + +$(SOURCE)/Makefile: $(SOURCE)/configure + cd $(SOURCE) && ./configure > /dev/null + +$(SOURCE)/configure: $(SOURCE)/configure.ac + cd $(SOURCE) && ./autogen.sh > /dev/null + +$(BUILD): + mkdir -p $(BUILD) + +clean: + rm -Rf $(BUILD) + +.PHONY: package clean diff --git a/packages/strongswan-maemo/Makefile b/packages/strongswan-maemo/Makefile new file mode 100644 index 000000000..b8a8a5101 --- /dev/null +++ b/packages/strongswan-maemo/Makefile @@ -0,0 +1,31 @@ +SOURCE:=../../ +BUILD:=build +VERSION:=$(shell sed -n 's/AC_INIT(.*,\s*\(.*\))/\1/p' $(SOURCE)/configure.in) +TARGETVERSION:=$(VERSION) +ORIGNAME:=strongswan-$(VERSION) +ORIGSRC:=$(BUILD)/strongswan_$(TARGETVERSION).orig.tar.gz + +package: $(ORIGSRC) + debchange -b -v $(TARGETVERSION)-1 + cp -R debian $(BUILD)/$(ORIGNAME) + cd $(BUILD)/$(ORIGNAME) && \ + dpkg-buildpackage -rfakeroot -sa > /dev/null + +$(ORIGSRC): $(SOURCE)/Makefile | $(BUILD) + make -j -C $(SOURCE) dist-gzip > /dev/null + mv $(SOURCE)/$(ORIGNAME).tar.gz $(ORIGSRC) + tar -zx -C $(BUILD) -f $(ORIGSRC) + +$(SOURCE)/Makefile: $(SOURCE)/configure + cd $(SOURCE) && ./configure --disable-gmp > /dev/null + +$(SOURCE)/configure: $(SOURCE)/configure.in + cd $(SOURCE) && ./autogen.sh > /dev/null + +$(BUILD): + mkdir -p $(BUILD) + +clean: + rm -Rf $(BUILD) + +.PHONY: package clean |