Skip to content

Instantly share code, notes, and snippets.

@steinarb
Created January 19, 2018 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinarb/5b0b6d771e2fae3873abac15c21a4f82 to your computer and use it in GitHub Desktop.
Save steinarb/5b0b6d771e2fae3873abac15c21a4f82 to your computer and use it in GitHub Desktop.
karaf debian rules file
#!/usr/bin/make -f
DISTRIBUTION = $(shell lsb_release -sr)
VERSION = 4.1.4
PACKAGEVERSION = $(VERSION)-0~$(DISTRIBUTION)0
TARBALL = apache-karaf-$(VERSION)-src.tar.gz
URL = http://apache.uib.no/karaf/$(VERSION)/$(TARBALL)
SRC=unpacked-src
%:
dh $@
override_dh_auto_clean:
override_dh_auto_test:
override_dh_auto_build:
override_dh_auto_install:
wget -N --progress=dot:mega $(URL)
mkdir -p $(SRC)
(cd $(SRC); tar --strip-components=1 -xf ../$(TARBALL) )
(cd $(SRC); mvn clean install -DskipTests=true )
override_dh_gencontrol:
dh_gencontrol -- -v$(PACKAGEVERSION)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment