debian-cis/debian/rules

36 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2016-04-18 17:14:56 +02:00
#!/usr/bin/make -f
# -*- makefile -*-
# vim: set noexpandtab:
#
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
PACKAGE = $(shell dh_listpackages)
%:
dh $@
override_dh_install:
dh_install
mkdir -p $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
2016-04-21 12:00:20 +02:00
cp README.md $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
2016-04-18 17:14:56 +02:00
cp -R bin $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
# /!\ tag /opt/$(PACKAGE)/etc/conf.d/* as configuration files in conffiles
2016-04-22 14:29:33 +02:00
# (ls | sort -V | xargs -i echo /opt/cis-hardening/etc/conf.d/{} -- without README -- with ../hardening.cfg)
2016-04-18 17:14:56 +02:00
cp -R etc $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
cp -R lib $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
# cleanup git stuff if any
find $(CURDIR)/debian/$(PACKAGE) -type f -name .gitignore -delete
2016-04-22 14:29:33 +02:00
2016-04-18 17:14:56 +02:00
override_dh_installdocs:
dh_installdocs
2016-04-21 12:00:20 +02:00
gzip -c AUTHORS > $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/AUTHORS.gz
2016-04-18 17:14:56 +02:00
gzip -c src/skel > $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/skel.gz