Skip to content

Instantly share code, notes, and snippets.

@eloycoto
Created July 12, 2017 20:45
Show Gist options
  • Save eloycoto/871e0bc17b48bdd4bce28ac1e418296f to your computer and use it in GitHub Desktop.
Save eloycoto/871e0bc17b48bdd4bce28ac1e418296f to your computer and use it in GitHub Desktop.
#!/usr/bin/make -f
#export DH_VERBOSE = 1
DEST_DIR="./debian/cilium/"
%:
dh $@ --with systemd
override_dh_auto_build:
make
override_dh_installinit:
for svc in $(shell ls ./contrib/systemd/*.service ); do \
cp $$svc debian/; \
done
# service=`echo $$svc | sed -n 's/.*\(cilium\-.*\)\.service/\1/p'`;\
# dh_installinit --name=$$service; \
#
dh_installinit --name=cilium
mkdir -p "$(DEST_DIR)/etc/sysconfig/"
cp "contrib/systemd/cilium" "$(DEST_DIR)/etc/sysconfig/cilium"
#for service in $(shell ls ./contrib/systemd/*.service | i
sed -n 's/.*\(cilium\-.*\)\.service/\1/p'); do \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment