mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 21:47:02 +01:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
|
#!/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)/
|
||
|
cp README $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
|
||
|
cp -R bin $(CURDIR)/debian/$(PACKAGE)/opt/$(PACKAGE)/
|
||
|
# /!\ tag /opt/$(PACKAGE)/etc/conf.d/* as configuration files in conffiles
|
||
|
# (ls | sort -V | xargs -i echo opt/cis-hardening/etc/conf.d/{} -- without README)
|
||
|
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
|
||
|
|
||
|
|
||
|
override_dh_installdocs:
|
||
|
dh_installdocs
|
||
|
gzip -c LICENSE > $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/LICENSE.gz
|
||
|
gzip -c README > $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/README.gz
|
||
|
gzip -c src/skel > $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/skel.gz
|