This commit is contained in:
parent
b4103cc1b8
commit
2efb41a845
@ -87,10 +87,23 @@ find doc -type f -exec chmod -x "{}" "+"
|
|||||||
#directory
|
#directory
|
||||||
make %{?_smp_mflags} -j1 V=1
|
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
|
%pre -n conntrackd
|
||||||
%service_add_pre conntrackd.service
|
%service_add_pre conntrackd.service
|
||||||
|
|
||||||
%post -n conntrackd
|
%post -n conntrackd
|
||||||
|
%fillup_only conntrackd
|
||||||
%service_add_post conntrackd.service
|
%service_add_post conntrackd.service
|
||||||
|
|
||||||
%preun -n conntrackd
|
%preun -n conntrackd
|
||||||
@ -99,17 +112,6 @@ make %{?_smp_mflags} -j1 V=1
|
|||||||
%postun -n conntrackd
|
%postun -n conntrackd
|
||||||
%service_del_postun conntrackd.service
|
%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
|
%files
|
||||||
%_sbindir/conntrack
|
%_sbindir/conntrack
|
||||||
%_sbindir/nfct
|
%_sbindir/nfct
|
||||||
@ -127,5 +129,6 @@ cp -a "%_sourcedir/conntrackd.README.SUSE" "%_sourcedir/conntrackd.conf" "%_sour
|
|||||||
%dir %_docdir/%name
|
%dir %_docdir/%name
|
||||||
%_docdir/%name/conntrackd*
|
%_docdir/%name/conntrackd*
|
||||||
%_unitdir/conntrackd*
|
%_unitdir/conntrackd*
|
||||||
|
%_fillupdir/*conntrackd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# The file can be copied to /etc/conntrackd/conntrackd.conf for a SUSE-provided
|
# This is a set of SUSE-provided recommendations. To use it or make
|
||||||
# set of defaults, overrding the built-in ones. See conntrackd.conf(5) for
|
# modifications to it, copy it to /etc/conntrackd/conntrackd.conf and adjust
|
||||||
# details.
|
# /etc/sysconfig/conntrackd.
|
||||||
|
|
||||||
General {
|
General {
|
||||||
Nice -5
|
Nice -5
|
||||||
@ -8,7 +8,6 @@ General {
|
|||||||
HashLimit 131072
|
HashLimit 131072
|
||||||
# LogFile on
|
# LogFile on
|
||||||
Syslog on
|
Syslog on
|
||||||
|
|
||||||
LockFile /var/run/lock/conntrackd.lock
|
LockFile /var/run/lock/conntrackd.lock
|
||||||
|
|
||||||
UNIX {
|
UNIX {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# If you want to start conntrackd with additional options (see
|
# If you want to start conntrackd with additional options (see
|
||||||
# `man 8 conntrackd`), please add them here.
|
# `man 8 conntrackd`), please add them here.
|
||||||
#
|
#
|
||||||
CONNTRACKD_OPTIONS=""
|
CONNTRACKD_OPTIONS="-C /dev/full"
|
||||||
|
|
||||||
## Description: The lock file of the running service
|
## Description: The lock file of the running service
|
||||||
## Default: '/var/run/lock/conntrackd.lock'
|
## Default: '/var/run/lock/conntrackd.lock'
|
||||||
|
Loading…
Reference in New Issue
Block a user