Add deb package configurations.

This commit is contained in:
Samson-W 2020-04-13 01:12:32 +08:00
parent 3d2bae1173
commit ffe2df12fe
5 changed files with 110 additions and 0 deletions

View File

@ -0,0 +1,5 @@
harbianaudit (0.4.1-1) unstable; urgency=medium
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- Samson W <samson@hardenedlinux.org> Sat, 11 Apr 2020 07:35:46 -0400

View File

@ -0,0 +1 @@
11

View File

@ -0,0 +1,15 @@
Source: harbianaudit
Section: admin
Priority: optional
Maintainer: Samson W <samson@hardenedlinux.org>
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.

View File

@ -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 <samson@hardenedlinux.org>
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 <https://www.gnu.org/licenses/>.
.
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 <samson@hardenedlinux.org>
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 <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

View File

@ -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