]> git.pld-linux.org Git - packages/freenet6-client.git/commitdiff
- rel 2
authoraredridel <aredridel@pld-linux.org>
Sun, 28 Dec 2003 01:00:03 +0000 (01:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- patch to make it play nice with radvd

Changed files:
    freenet6-client.spec -> 1.5

freenet6-client.spec

index 871bc3e57bc18095b0c8dec65e9f5b33c5af693b..29bde7a7e5b4b0b58b998cc4d81a8cb7177d6632 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Hexago's TSP Client
 Summary(pl):   Klient TSP Hexago
 Name:          freenet6-client
 Version:       1.0
-Release:       1
+Release:       2
 License:       HPL 1.0
 Group:         Applications/System
 Vendor:                Hexago
@@ -12,6 +12,7 @@ Source0:      http://www.kernel.pl/~djurban/pld/%{name}-%{version}.tgz
 Source1:       freenet6.init
 Source2:       tspc.conf
 Patch0:        %{name}-paths.patch
+Patch1:        %{name}-play-nice.patch
 URL:           http://www.freenet6.net
 Requires:      glibc >= 2.2.1
 Requires:      iproute2 >= 2.2.4
@@ -78,6 +79,7 @@ IPv6 po sieci IPv4 (Internecie).
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} all \
@@ -96,7 +98,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/tspc,%{_initrddir}}
        install_man=$RPM_BUILD_ROOT%{_mandir} \
        install_template=$RPM_BUILD_ROOT%{_datadir}/tspc
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/freenet6
 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/tspc
 
 %clean
@@ -114,3 +116,19 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/tspc/linux.sh
 %{_mandir}/man5/*
 %{_mandir}/man8/*
+
+%post
+/sbin/chkconfig --add freenet6
+if [ -f /var/lock/subsys/freenet6 ]; then
+       /etc/rc.d/init.d/freenet6 restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/freenet6 start\" to start freenet6 connection"
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/freenet6 ]; then
+               /etc/rc.d/init.d/freenet6 stop 1>&2
+       fi
+       /sbin/chkconfig --del freenet6
+fi
This page took 0.08628 seconds and 4 git commands to generate.