mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Add logrotate files to packages
This commit is contained in:
parent
5a525134ea
commit
306549119a
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
\#!/bin/sh
|
||||||
#
|
#
|
||||||
# Script to install Shoreline Firewall Lite
|
# Script to install Shoreline Firewall Lite
|
||||||
#
|
#
|
||||||
@ -220,6 +220,11 @@ mkdir -p ${PREFIX}/var/lib/shorewall-lite
|
|||||||
chmod 755 ${PREFIX}/etc/shorewall-lite
|
chmod 755 ${PREFIX}/etc/shorewall-lite
|
||||||
chmod 755 ${PREFIX}/usr/share/shorewall-lite
|
chmod 755 ${PREFIX}/usr/share/shorewall-lite
|
||||||
|
|
||||||
|
if [ -n "$PREFIX" ]; then
|
||||||
|
mkdir -p ${PREFIX}/etc/logrotate.d
|
||||||
|
chmod 755 ${PREFIX}/etc/logrotate.d
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the config file
|
# Install the config file
|
||||||
#
|
#
|
||||||
@ -304,6 +309,12 @@ cd ..
|
|||||||
|
|
||||||
echo "Man Pages Installed"
|
echo "Man Pages Installed"
|
||||||
|
|
||||||
|
if [ -d ${PREFIX}/etc/logrotate.d ]; then
|
||||||
|
run_install $OWNERSHIP -m 0644 logrotate ${PREFIX}/etc/logrotate.d/shorewall-lite
|
||||||
|
echo "Logrotate file installed as ${PREFIX}/etc/logrotate.d/shorewall-lite"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create the version file
|
# Create the version file
|
||||||
#
|
#
|
||||||
|
5
Shorewall-lite/logrotate
Normal file
5
Shorewall-lite/logrotate
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/var/log/shorewall-init.log {
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0600 root root
|
||||||
|
}
|
@ -79,6 +79,8 @@ fi
|
|||||||
%attr(0755,root,root) %dir /usr/share/shorewall-lite
|
%attr(0755,root,root) %dir /usr/share/shorewall-lite
|
||||||
%attr(0700,root,root) %dir /var/lib/shorewall-lite
|
%attr(0700,root,root) %dir /var/lib/shorewall-lite
|
||||||
|
|
||||||
|
%attr(0644,root,root) /etc/logrotate.d/shorewall-lite
|
||||||
|
|
||||||
%attr(0755,root,root) /sbin/shorewall-lite
|
%attr(0755,root,root) /sbin/shorewall-lite
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
%attr(0644,root,root) /usr/share/shorewall-lite/version
|
||||||
|
@ -242,6 +242,12 @@ mkdir -p ${PREFIX}/var/lib/shorewall
|
|||||||
chmod 755 ${PREFIX}/etc/shorewall
|
chmod 755 ${PREFIX}/etc/shorewall
|
||||||
chmod 755 ${PREFIX}/usr/share/shorewall
|
chmod 755 ${PREFIX}/usr/share/shorewall
|
||||||
chmod 755 ${PREFIX}/usr/share/shorewall/configfiles
|
chmod 755 ${PREFIX}/usr/share/shorewall/configfiles
|
||||||
|
|
||||||
|
if [ -n "$PREFIX" ]; then
|
||||||
|
mkdir -p ${PREFIX}/etc/logrotate.d
|
||||||
|
chmod 755 ${PREFIX}/etc/logrotate.d
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the config file
|
# Install the config file
|
||||||
#
|
#
|
||||||
@ -792,6 +798,11 @@ cd ..
|
|||||||
|
|
||||||
echo "Man Pages Installed"
|
echo "Man Pages Installed"
|
||||||
|
|
||||||
|
if [ -d ${PREFIX}/etc/logrotate.d ]; then
|
||||||
|
run_install $OWNERSHIP -m 0644 logrotate ${PREFIX}/etc/logrotate.d/shorewall
|
||||||
|
echo "Logrotate file installed as ${PREFIX}/etc/logrotate.d/shorewall"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$PREFIX" ]; then
|
if [ -z "$PREFIX" ]; then
|
||||||
rm -rf /usr/share/shorewall-perl
|
rm -rf /usr/share/shorewall-perl
|
||||||
rm -rf /usr/share/shorewall-shell
|
rm -rf /usr/share/shorewall-shell
|
||||||
|
5
Shorewall/logrotate
Normal file
5
Shorewall/logrotate
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/var/log/shorewall-init.log {
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0600 root root
|
||||||
|
}
|
@ -77,6 +77,8 @@ fi
|
|||||||
%attr(0644,root,root) %config(noreplace) /etc/shorewall/*
|
%attr(0644,root,root) %config(noreplace) /etc/shorewall/*
|
||||||
%attr(0600,root,root) /etc/shorewall/Makefile
|
%attr(0600,root,root) /etc/shorewall/Makefile
|
||||||
|
|
||||||
|
%attr(0644,root,root) /etc/logrotate.d/shorewall
|
||||||
|
|
||||||
%attr(0755,root,root) /sbin/shorewall
|
%attr(0755,root,root) /sbin/shorewall
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall/version
|
%attr(0644,root,root) /usr/share/shorewall/version
|
||||||
|
@ -219,6 +219,11 @@ mkdir -p ${PREFIX}/var/lib/shorewall6-lite
|
|||||||
chmod 755 ${PREFIX}/etc/shorewall6-lite
|
chmod 755 ${PREFIX}/etc/shorewall6-lite
|
||||||
chmod 755 ${PREFIX}/usr/share/shorewall6-lite
|
chmod 755 ${PREFIX}/usr/share/shorewall6-lite
|
||||||
|
|
||||||
|
if [ -n "$PREFIX" ]; then
|
||||||
|
mkdir -p ${PREFIX}/etc/logrotate.d
|
||||||
|
chmod 755 ${PREFIX}/etc/logrotate.d
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the config file
|
# Install the config file
|
||||||
#
|
#
|
||||||
@ -303,6 +308,11 @@ cd ..
|
|||||||
|
|
||||||
echo "Man Pages Installed"
|
echo "Man Pages Installed"
|
||||||
|
|
||||||
|
if [ -d ${PREFIX}/etc/logrotate.d ]; then
|
||||||
|
run_install $OWNERSHIP -m 0644 logrotate ${PREFIX}/etc/logrotate.d/shorewall6-lite
|
||||||
|
echo "Logrotate file installed as ${PREFIX}/etc/logrotate.d/shorewall6-lite"
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create the version file
|
# Create the version file
|
||||||
#
|
#
|
||||||
|
5
Shorewall6-lite/logrotate
Normal file
5
Shorewall6-lite/logrotate
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/var/log/shorewall6-init.log {
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0600 root root
|
||||||
|
}
|
@ -72,6 +72,8 @@ fi
|
|||||||
|
|
||||||
%attr(0755,root,root) /sbin/shorewall6-lite
|
%attr(0755,root,root) /sbin/shorewall6-lite
|
||||||
|
|
||||||
|
%attr(0755,root,root) /sbin/shorewall6-lite
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall6-lite/version
|
%attr(0644,root,root) /usr/share/shorewall6-lite/version
|
||||||
%attr(0644,root,root) /usr/share/shorewall6-lite/configpath
|
%attr(0644,root,root) /usr/share/shorewall6-lite/configpath
|
||||||
%attr(- ,root,root) /usr/share/shorewall6-lite/functions
|
%attr(- ,root,root) /usr/share/shorewall6-lite/functions
|
||||||
|
@ -234,6 +234,12 @@ mkdir -p ${PREFIX}/var/lib/shorewall6
|
|||||||
chmod 755 ${PREFIX}/etc/shorewall6
|
chmod 755 ${PREFIX}/etc/shorewall6
|
||||||
chmod 755 ${PREFIX}/usr/share/shorewall6
|
chmod 755 ${PREFIX}/usr/share/shorewall6
|
||||||
chmod 755 ${PREFIX}/usr/share/shorewall6/configfiles
|
chmod 755 ${PREFIX}/usr/share/shorewall6/configfiles
|
||||||
|
|
||||||
|
if [ -n "$PREFIX" ]; then
|
||||||
|
mkdir -p ${PREFIX}/etc/logrotate.d
|
||||||
|
chmod 755 ${PREFIX}/etc/logrotate.d
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install the config file
|
# Install the config file
|
||||||
#
|
#
|
||||||
@ -642,6 +648,11 @@ cd ..
|
|||||||
|
|
||||||
echo "Man Pages Installed"
|
echo "Man Pages Installed"
|
||||||
|
|
||||||
|
if [ -d ${PREFIX}/etc/logrotate.d ]; then
|
||||||
|
run_install $OWNERSHIP -m 0644 logrotate ${PREFIX}/etc/logrotate.d/shorewall6
|
||||||
|
echo "Logrotate file installed as ${PREFIX}/etc/logrotate.d/shorewall6"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$PREFIX" -a -n "$first_install" -a -z "$CYGWIN" ]; then
|
if [ -z "$PREFIX" -a -n "$first_install" -a -z "$CYGWIN" ]; then
|
||||||
if [ -n "$DEBIAN" ]; then
|
if [ -n "$DEBIAN" ]; then
|
||||||
run_install $OWNERSHIP -m 0644 default.debian /etc/default/shorewall6
|
run_install $OWNERSHIP -m 0644 default.debian /etc/default/shorewall6
|
||||||
|
5
Shorewall6/logrotate
Normal file
5
Shorewall6/logrotate
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/var/log/shorewall6-init.log {
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0600 root root
|
||||||
|
}
|
@ -69,6 +69,8 @@ fi
|
|||||||
%attr(0644,root,root) %config(noreplace) /etc/shorewall6/*
|
%attr(0644,root,root) %config(noreplace) /etc/shorewall6/*
|
||||||
%attr(0600,root,root) /etc/shorewall6/Makefile
|
%attr(0600,root,root) /etc/shorewall6/Makefile
|
||||||
|
|
||||||
|
%attr(0644,root,root) /etc/logrotate.d/shorewall6
|
||||||
|
|
||||||
%attr(0755,root,root) /sbin/shorewall6
|
%attr(0755,root,root) /sbin/shorewall6
|
||||||
|
|
||||||
%attr(0644,root,root) /usr/share/shorewall6/version
|
%attr(0644,root,root) /usr/share/shorewall6/version
|
||||||
|
Loading…
Reference in New Issue
Block a user