From 8a21e0f275ba56895032a148f98f4c745eb3753b Mon Sep 17 00:00:00 2001 From: Jerome Etienne Date: Fri, 29 Oct 2010 22:07:25 +0200 Subject: [PATCH] more work modified: Makefile modified: README new file: deps.sh --- Makefile | 13 +++++++------ README | 5 ++++- deps.sh | 10 ++++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 deps.sh diff --git a/Makefile b/Makefile index 39ebc92..437debc 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ # full operation: make src_delete src_import ppa_upload # define variables +# - to get the codename => $ lsb_release -c -s PKGNAME="nodejs" -VERSION="0.2.0" +VERSION="0.2.4" +CODENAME="lucid" PWD := $(shell pwd) TMP_DIR := $(PWD)/tmp @@ -10,7 +12,6 @@ SRC_DIR := $(TMP_DIR)/node SRC_GIT := http://github.com/ry/node.git SRC_TAG := v$(VERSION) - all: build mydistclean: src_delete deb_clean @@ -35,7 +36,7 @@ clean: (cd $(SRC_DIR) && make clean; true) build: - (cd $(SRC_DIR) && ./configure && make) + (cd $(SRC_DIR) && export GCC_VERSION=44 && ./configure && make) install: (cd $(SRC_DIR) && make install) @@ -51,10 +52,10 @@ deb_bin_build: debuild -i -us -uc -b deb_upd_changelog: - dch --newversion $(VERSION)~lucid1~ppa`date +%Y%m%d%H%M` --maintmaint --force-bad-version --distribution `lsb_release -c -s` Another build + dch --newversion $(VERSION)~$(CODENAME)1~ppa`date +%Y%m%d%H%M` --maintmaint --force-bad-version --distribution `lsb_release -c -s` Another build deb_clean: - rm -f ../$(PKGNAME)_$(VERSION)~lucid1~ppa* + rm -f ../$(PKGNAME)_$(VERSION)~$(CODENAME)1~ppa* ppa_upload: src_delete src_import clean deb_clean deb_upd_changelog deb_src_build - dput -U ppa:jerome-etienne/neoip ../$(PKGNAME)_$(VERSION)~lucid1~ppa*_source.changes + dput -U ppa:jerome-etienne/neoip ../$(PKGNAME)_$(VERSION)~$(CODENAME)1~ppa*_source.changes diff --git a/README b/README index 3909fed..e98fb6b 100644 --- a/README +++ b/README @@ -8,4 +8,7 @@ sudo apt-get install nodejs nodejs will be automatically updated when you do the usual apt-get upgrade $ node -v -v0.1.103 \ No newline at end of file +v0.1.103 + +to install dependancies +sudo sh deps.sh \ No newline at end of file diff --git a/deps.sh b/deps.sh new file mode 100644 index 0000000..b26a836 --- /dev/null +++ b/deps.sh @@ -0,0 +1,10 @@ +# to get all the deb building scripts +sudo apt-get install devscripts +sudo apt-get install debhelper + +# to get the signing programm +# - but the key need to be in launchpad for ppa +sudo apt-get install gnupg + +# to compile ssl in nodejs +sudo apt-get install libssl-dev \ No newline at end of file