github.com/imran-kn/cilium-fork@v1.6.9/contrib/packaging/deb/debian/rules (about)

     1  #!/usr/bin/make -f
     2  #export DH_VERBOSE = 1
     3  
     4  DEST_DIR="./debian/cilium/"
     5  
     6  %:
     7  	dh $@ --with systemd
     8  
     9  override_dh_auto_build:
    10  	make
    11  
    12  override_dh_installinit:
    13  
    14  	for svc in $(shell ls ./contrib/systemd/*.* ); do \
    15  		cp -f "$$svc" "./debian/"; \
    16  		service=$$(echo $$svc | sed -E -n 's/.*\/(.*?).(service|mount)/\1/p'); \
    17  		dh_installinit --name=$${service}; \
    18  	done
    19  
    20  	mkdir -p "$(DEST_DIR)/etc/sysconfig/"
    21  	cp "contrib/systemd/cilium" "$(DEST_DIR)/etc/sysconfig/cilium"