Jan Engelhardt 2018-01-31 16:27:22 +00:00 committed by Git OBS Bridge
parent b4103cc1b8
commit 2efb41a845
3 changed files with 18 additions and 16 deletions

View File

@ -87,10 +87,23 @@ find doc -type f -exec chmod -x "{}" "+"
#directory
make %{?_smp_mflags} -j1 V=1
%install
%make_install
b="%buildroot"
ln -s service "$b/%_sbindir/rcconntrackd"
find "$b/%_libdir" -type f -name "*.la" -delete
install -Dpm0644 "%_sourcedir"/conntrackd.service "$b/%_unitdir/conntrackd.service"
install -Dpm0644 "%_sourcedir/conntrackd.sysconfig" "$b/%_fillupdir/sysconfig.conntrackd"
install -Dpm0644 "%_sourcedir/conntrackd.logrotate" "$b/%_sysconfdir/logrotate.d/conntrackd"
b="%buildroot/%_docdir/%name"
mkdir -p "$b"
cp -a "%_sourcedir/conntrackd.README.SUSE" "%_sourcedir/conntrackd.conf" "$b/"
%pre -n conntrackd
%service_add_pre conntrackd.service
%post -n conntrackd
%fillup_only conntrackd
%service_add_post conntrackd.service
%preun -n conntrackd
@ -99,17 +112,6 @@ make %{?_smp_mflags} -j1 V=1
%postun -n conntrackd
%service_del_postun conntrackd.service
%install
%make_install
b="%buildroot"
ln -s service "$b/%_sbindir/rcconntrackd"
find "$b/%_libdir" -type f -name "*.la" -delete
install -Dpm0644 "%_sourcedir"/conntrackd.service "$b/%_unitdir/conntrackd.service"
install -Dpm0644 "%_sourcedir/conntrackd.logrotate" "$b/%_sysconfdir/logrotate.d/conntrackd"
b="%buildroot/%_docdir/%name"
mkdir -p "$b"
cp -a "%_sourcedir/conntrackd.README.SUSE" "%_sourcedir/conntrackd.conf" "%_sourcedir/conntrackd.sysconfig" "$b/"
%files
%_sbindir/conntrack
%_sbindir/nfct
@ -127,5 +129,6 @@ cp -a "%_sourcedir/conntrackd.README.SUSE" "%_sourcedir/conntrackd.conf" "%_sour
%dir %_docdir/%name
%_docdir/%name/conntrackd*
%_unitdir/conntrackd*
%_fillupdir/*conntrackd
%changelog

View File

@ -1,6 +1,6 @@
# The file can be copied to /etc/conntrackd/conntrackd.conf for a SUSE-provided
# set of defaults, overrding the built-in ones. See conntrackd.conf(5) for
# details.
# This is a set of SUSE-provided recommendations. To use it or make
# modifications to it, copy it to /etc/conntrackd/conntrackd.conf and adjust
# /etc/sysconfig/conntrackd.
General {
Nice -5
@ -8,7 +8,6 @@ General {
HashLimit 131072
# LogFile on
Syslog on
LockFile /var/run/lock/conntrackd.lock
UNIX {

View File

@ -9,7 +9,7 @@
# If you want to start conntrackd with additional options (see
# `man 8 conntrackd`), please add them here.
#
CONNTRACKD_OPTIONS=""
CONNTRACKD_OPTIONS="-C /dev/full"
## Description: The lock file of the running service
## Default: '/var/run/lock/conntrackd.lock'