diff --git a/docs/configurations/debian-config-4-build-deb/changelog b/docs/configurations/debian-config-4-build-deb/changelog new file mode 100644 index 0000000..55ef955 --- /dev/null +++ b/docs/configurations/debian-config-4-build-deb/changelog @@ -0,0 +1,5 @@ +harbianaudit (0.4.1-1) unstable; urgency=medium + + * Initial release (Closes: #nnnn) + + -- Samson W Sat, 11 Apr 2020 07:35:46 -0400 diff --git a/docs/configurations/debian-config-4-build-deb/compat b/docs/configurations/debian-config-4-build-deb/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/docs/configurations/debian-config-4-build-deb/compat @@ -0,0 +1 @@ +11 diff --git a/docs/configurations/debian-config-4-build-deb/control b/docs/configurations/debian-config-4-build-deb/control new file mode 100644 index 0000000..2c49481 --- /dev/null +++ b/docs/configurations/debian-config-4-build-deb/control @@ -0,0 +1,15 @@ +Source: harbianaudit +Section: admin +Priority: optional +Maintainer: Samson W +Build-Depends: debhelper (>= 11) +Standards-Version: 4.1.3 +Homepage: https://github.com/hardenedlinux/harbian-audit +Vcs-Browser: https://github.com/hardenedlinux/harbian-audit +Vcs-Git: https://github.com/hardenedlinux/harbian-audit + +Package: harbianaudit +Architecture: all +Depends: ${misc:Depends} +Description: Hardened Debian GNU/Linux and CentOS 8 distro auditing. + Hardened Debian GNU/Linux and CentOS 8 distro auditing. diff --git a/docs/configurations/debian-config-4-build-deb/copyright b/docs/configurations/debian-config-4-build-deb/copyright new file mode 100644 index 0000000..0710435 --- /dev/null +++ b/docs/configurations/debian-config-4-build-deb/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: harbianaudit +Source: https://github.com/hardenedlinux/harbian-audit + +Files: * +Copyright: 2018-2020 samson +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +Files: debian/* +Copyright: 2020 Samson W +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + diff --git a/docs/configurations/debian-config-4-build-deb/rules b/docs/configurations/debian-config-4-build-deb/rules new file mode 100755 index 0000000..616114c --- /dev/null +++ b/docs/configurations/debian-config-4-build-deb/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + +override_dh_install: + install -d debian/harbianaudit/opt/harbianaudit/ + install -d debian/harbianaudit/opt/harbianaudit/bin/ + install -d debian/harbianaudit/opt/harbianaudit/lib/ + install -d debian/harbianaudit/opt/harbianaudit/etc/ + install -d debian/harbianaudit/opt/harbianaudit/src/ + install -d debian/harbianaudit/opt/harbianaudit/bin/hardening/ + install -g root -o root -m 755 -p bin/hardening.sh debian/harbianaudit/opt/harbianaudit/bin/ + install -g root -o root -m 755 -p docs/configurations/etc.iptables.rules.v4.sh debian/harbianaudit/opt/harbianaudit/bin/ + install -g root -o root -m 755 -p docs/configurations/etc.iptables.rules.v6.sh debian/harbianaudit/opt/harbianaudit/bin/ + install -g root -o root -m 755 -p bin/harbianaudit.sh debian/harbianaudit/opt/harbianaudit/bin/ + install -g root -o root -m 755 -p bin/hardening/* debian/harbianaudit/opt/harbianaudit/bin/hardening/ + install -d debian/harbianaudit/etc/default/ + install -g root -o root -m 644 -p etc/default.cfg debian/harbianaudit/etc/default/cis-hardening + install -g root -o root -m 644 -p etc/hardening.cfg debian/harbianaudit/opt/harbianaudit/etc/ + install -d debian/harbianaudit/opt/harbianaudit/etc/conf.d/ + install -g root -o root -m 644 -p lib/* debian/harbianaudit/opt/harbianaudit/lib/ + install -g root -o root -m 644 -p src/* debian/harbianaudit/opt/harbianaudit/src/ + install -d debian/harbianaudit/opt/harbianaudit/tmp/ + install -d debian/harbianaudit/opt/harbianaudit/tmp/backups/ + install -d debian/harbianaudit/usr/share/man/man1/ + install -g root -o root -m 644 -p README.md debian/harbianaudit/usr/share/man/man1/harbianaudit.1