[arch-commits] Commit in ipsec-tools/trunk (PKGBUILD ipsec.rc racoon.rc)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 14:44:51 UTC 2013


    Date: Monday, May 13, 2013 @ 16:44:51
  Author: spupykin
Revision: 90744

upgpkg: ipsec-tools 0.8.1-2

upd

Modified:
  ipsec-tools/trunk/PKGBUILD
Deleted:
  ipsec-tools/trunk/ipsec.rc
  ipsec-tools/trunk/racoon.rc

-----------+
 PKGBUILD  |   11 +++--------
 ipsec.rc  |   35 -----------------------------------
 racoon.rc |   35 -----------------------------------
 3 files changed, 3 insertions(+), 78 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:43:11 UTC (rev 90743)
+++ PKGBUILD	2013-05-13 14:44:51 UTC (rev 90744)
@@ -4,7 +4,7 @@
 
 pkgname=ipsec-tools
 pkgver=0.8.1
-pkgrel=1
+pkgrel=2
 pkgdesc="KAME IPSec tools ported to Linux"
 arch=('i686' 'x86_64')
 url="http://ipsec-tools.sourceforge.net/"
@@ -13,14 +13,10 @@
 license=('GPL')
 options=('!makeflags' '!libtool')
 source=(http://downloads.sourceforge.net/sourceforge/ipsec-tools/$pkgname-$pkgver.tar.bz2
-	racoon.rc
-	ipsec.rc
 	racoon.service
 	ipsec.service
 	ipsec-tools-linux-3.7-compat.patch)
 md5sums=('d38b39f291ba2962387c3232e7335dd8'
-         '416b8e362d86987b8c55f7153cdafbeb'
-         '90d0810267cbd847383ae3101699b192'
          '1632fce55ba5592dea1f8bf661106e7d'
          '5bf7478590c751b465617681a31619fe'
          'ae1dd20c83dcfce3dedb46ee73e83613')
@@ -34,15 +30,14 @@
   ./bootstrap
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
 	--enable-security-context=no --enable-hybrid --enable-dpd --enable-natt \
-	--enable-adminport --enable-gssapi
+	--enable-adminport --enable-gssapi \
+	--with-kernel-headers=/lib/modules/`pacman -Q linux-headers | cut -f2 -d\ `-ARCH/build/include
   make
 }
 
 package() {
   cd $srcdir/$pkgname-$pkgver
   make DESTDIR=$pkgdir install
-  install -Dm0755 $srcdir/racoon.rc $pkgdir/etc/rc.d/racoon
-  install -Dm0755 $srcdir/ipsec.rc $pkgdir/etc/rc.d/ipsec
   install -Dm0644 $srcdir/racoon.service $pkgdir/usr/lib/systemd/system/racoon.service
   install -Dm0644 $srcdir/ipsec.service $pkgdir/usr/lib/systemd/system/ipsec.service
 }

Deleted: ipsec.rc
===================================================================
--- ipsec.rc	2013-05-13 14:43:11 UTC (rev 90743)
+++ ipsec.rc	2013-05-13 14:44:51 UTC (rev 90744)
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
-  start)
-    stat_busy "Loading IPSec Security Policy Database..."
-    /usr/sbin/setkey -f /etc/ipsec.conf &>/dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon ipsec
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Unloading IPSec Security Policy Database..."
-    /usr/sbin/setkey -F -P
-    /usr/sbin/setkey -F
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon ipsec
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-exit 0

Deleted: racoon.rc
===================================================================
--- racoon.rc	2013-05-13 14:43:11 UTC (rev 90743)
+++ racoon.rc	2013-05-13 14:44:51 UTC (rev 90744)
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/sbin/racoon`
-case "$1" in
-  start)
-    stat_busy "Starting Racoon IPSec daemon"
-    [ -z "$PID" ] && /usr/sbin/racoon
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon racoon
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping Racoon IPSec daemon"
-    [ ! -z "$PID" ]  && kill $PID &>/dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon racoon
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-exit 0




More information about the arch-commits mailing list