[arch-commits] Commit in ipvsadm/repos (20 files)
Sébastien Luttringer
seblu at nymeria.archlinux.org
Sun May 12 23:51:35 UTC 2013
Date: Monday, May 13, 2013 @ 01:51:34
Author: seblu
Revision: 90518
archrelease: copy trunk to community-i686, community-x86_64
Added:
ipvsadm/repos/community-i686/01-fix-not-showing-all-server.patch
(from rev 90517, ipvsadm/trunk/01-fix-not-showing-all-server.patch)
ipvsadm/repos/community-i686/PKGBUILD
(from rev 90517, ipvsadm/trunk/PKGBUILD)
ipvsadm/repos/community-i686/ipvsadm.install
(from rev 90517, ipvsadm/trunk/ipvsadm.install)
ipvsadm/repos/community-i686/ipvsadm.service
(from rev 90517, ipvsadm/trunk/ipvsadm.service)
ipvsadm/repos/community-i686/ipvsadm.systemd
(from rev 90517, ipvsadm/trunk/ipvsadm.systemd)
ipvsadm/repos/community-x86_64/01-fix-not-showing-all-server.patch
(from rev 90517, ipvsadm/trunk/01-fix-not-showing-all-server.patch)
ipvsadm/repos/community-x86_64/PKGBUILD
(from rev 90517, ipvsadm/trunk/PKGBUILD)
ipvsadm/repos/community-x86_64/ipvsadm.install
(from rev 90517, ipvsadm/trunk/ipvsadm.install)
ipvsadm/repos/community-x86_64/ipvsadm.service
(from rev 90517, ipvsadm/trunk/ipvsadm.service)
ipvsadm/repos/community-x86_64/ipvsadm.systemd
(from rev 90517, ipvsadm/trunk/ipvsadm.systemd)
Deleted:
ipvsadm/repos/community-i686/01-fix-not-showing-all-server.patch
ipvsadm/repos/community-i686/PKGBUILD
ipvsadm/repos/community-i686/ipvsadm.install
ipvsadm/repos/community-i686/ipvsadm.service
ipvsadm/repos/community-i686/ipvsadm.systemd
ipvsadm/repos/community-x86_64/01-fix-not-showing-all-server.patch
ipvsadm/repos/community-x86_64/PKGBUILD
ipvsadm/repos/community-x86_64/ipvsadm.install
ipvsadm/repos/community-x86_64/ipvsadm.service
ipvsadm/repos/community-x86_64/ipvsadm.systemd
------------------------------------------------------+
/01-fix-not-showing-all-server.patch | 48 +++++++
/PKGBUILD | 108 +++++++++++++++++
/ipvsadm.install | 20 +++
/ipvsadm.service | 22 +++
/ipvsadm.systemd | 42 ++++++
community-i686/01-fix-not-showing-all-server.patch | 24 ---
community-i686/PKGBUILD | 51 --------
community-i686/ipvsadm.install | 10 -
community-i686/ipvsadm.service | 11 -
community-i686/ipvsadm.systemd | 21 ---
community-x86_64/01-fix-not-showing-all-server.patch | 24 ---
community-x86_64/PKGBUILD | 51 --------
community-x86_64/ipvsadm.install | 10 -
community-x86_64/ipvsadm.service | 11 -
community-x86_64/ipvsadm.systemd | 21 ---
15 files changed, 240 insertions(+), 234 deletions(-)
Deleted: community-i686/01-fix-not-showing-all-server.patch
===================================================================
--- community-i686/01-fix-not-showing-all-server.patch 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-i686/01-fix-not-showing-all-server.patch 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,24 +0,0 @@
-diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h
---- ipvsadm-1.26.vanilla/libipvs/ip_vs.h 2011-02-06 18:38:57.000000000 -0800
-+++ ipvsadm-1.26/libipvs/ip_vs.h 2011-08-23 15:03:59.000000000 -0700
-@@ -413,7 +413,7 @@
- __IPVS_CMD_ATTR_MAX,
- };
-
--#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
-+#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)
-
- /*
- * Attributes used to describe a service
-diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c
-ipvsadm-1.26/libipvs/ip_vs_nl_policy.c
---- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c 2008-09-18
-08:57:37.000000000 -0700
-+++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c 2011-08-23 14:45:34.000000000 -0700
-@@ -26,6 +26,8 @@
- [IPVS_SVC_ATTR_TIMEOUT] = { .type = NLA_U32 },
- [IPVS_SVC_ATTR_NETMASK] = { .type = NLA_U32 },
- [IPVS_SVC_ATTR_STATS] = { .type = NLA_NESTED },
-+ [IPVS_SVC_ATTR_PE_NAME] = { .type = NLA_STRING,
-+ .maxlen = IP_VS_PENAME_MAXLEN},
- };
Copied: ipvsadm/repos/community-i686/01-fix-not-showing-all-server.patch (from rev 90517, ipvsadm/trunk/01-fix-not-showing-all-server.patch)
===================================================================
--- community-i686/01-fix-not-showing-all-server.patch (rev 0)
+++ community-i686/01-fix-not-showing-all-server.patch 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,24 @@
+diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h
+--- ipvsadm-1.26.vanilla/libipvs/ip_vs.h 2011-02-06 18:38:57.000000000 -0800
++++ ipvsadm-1.26/libipvs/ip_vs.h 2011-08-23 15:03:59.000000000 -0700
+@@ -413,7 +413,7 @@
+ __IPVS_CMD_ATTR_MAX,
+ };
+
+-#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
++#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)
+
+ /*
+ * Attributes used to describe a service
+diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c
+ipvsadm-1.26/libipvs/ip_vs_nl_policy.c
+--- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c 2008-09-18
+08:57:37.000000000 -0700
++++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c 2011-08-23 14:45:34.000000000 -0700
+@@ -26,6 +26,8 @@
+ [IPVS_SVC_ATTR_TIMEOUT] = { .type = NLA_U32 },
+ [IPVS_SVC_ATTR_NETMASK] = { .type = NLA_U32 },
+ [IPVS_SVC_ATTR_STATS] = { .type = NLA_NESTED },
++ [IPVS_SVC_ATTR_PE_NAME] = { .type = NLA_STRING,
++ .maxlen = IP_VS_PENAME_MAXLEN},
+ };
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-i686/PKGBUILD 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
-# Contributor: Judd Vinet <jvinet at zeroflux.org>
-
-pkgname=ipvsadm
-pkgver=1.26
-pkgrel=7
-pkgdesc='The IP Virtual Server administration utility'
-arch=('i686' 'x86_64')
-url='http://www.linuxvirtualserver.org/software/ipvs.html'
-license=('GPL2')
-depends=('libnl1' 'popt' 'bash')
-backup=("etc/$pkgname.conf")
-options=('!makeflags')
-install=$pkgname.install
-source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz"
- "$pkgname.systemd"
- "$pkgname.service"
- '01-fix-not-showing-all-server.patch')
-md5sums=('eac3ba3f62cd4dea2da353aeddd353a8'
- 'b45ef25d384a7a68b51ff80d0fe81dd2'
- 'dc87684064f85b64c1e79c1eac336303'
- 'e9fb77d2fbe2d3f41d60257316338543')
-
-build() {
- cd $pkgname-$pkgver
- patch -p1 -i ../01-fix-not-showing-all-server.patch
- make
-}
-
-package() {
- pushd $pkgname-$pkgver
- make \
- BUILD_ROOT="$pkgdir" \
- MANDIR=usr/share/man \
- SBIN="$pkgdir/usr/sbin" \
- INIT="$pkgdir/etc/rc.d" \
- install
- popd
- # systemd
- install -Dm 755 $pkgname.systemd \
- "$pkgdir/usr/lib/systemd/scripts/$pkgname"
- install -Dm 644 $pkgname.service \
- "$pkgdir/usr/lib/systemd/system/$pkgname.service"
- # remove legacy init system
- rm -rf "$pkgdir/etc/rc.d"
- # default config file
- install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: ipvsadm/repos/community-i686/PKGBUILD (from rev 90517, ipvsadm/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Judd Vinet <jvinet at zeroflux.org>
+
+pkgname=ipvsadm
+pkgver=1.26
+pkgrel=8
+pkgdesc='The IP Virtual Server administration utility'
+arch=('i686' 'x86_64')
+url='http://www.linuxvirtualserver.org/software/ipvs.html'
+license=('GPL2')
+depends=('libnl1' 'popt' 'bash')
+backup=("etc/$pkgname.conf")
+options=('!makeflags')
+install=$pkgname.install
+source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz"
+ "$pkgname.systemd"
+ "$pkgname.service"
+ '01-fix-not-showing-all-server.patch')
+md5sums=('eac3ba3f62cd4dea2da353aeddd353a8'
+ 'b45ef25d384a7a68b51ff80d0fe81dd2'
+ 'dc87684064f85b64c1e79c1eac336303'
+ 'e9fb77d2fbe2d3f41d60257316338543')
+
+prepare() {
+ patch -p1 -d $pkgname-$pkgver < 01-fix-not-showing-all-server.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ make \
+ BUILD_ROOT="$pkgdir" \
+ MANDIR=usr/share/man \
+ SBIN="$pkgdir/usr/bin" \
+ INIT="$pkgdir/etc/rc.d" \
+ install
+ popd
+ # systemd
+ install -Dm 755 $pkgname.systemd \
+ "$pkgdir/usr/lib/systemd/scripts/$pkgname"
+ install -Dm 644 $pkgname.service \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ # remove legacy init system
+ rm -rf "$pkgdir/etc/rc.d"
+ # default config file
+ install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: community-i686/ipvsadm.install
===================================================================
--- community-i686/ipvsadm.install 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-i686/ipvsadm.install 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,10 +0,0 @@
-## arg 1: the new package version
-## arg 2: the old package version
-post_upgrade() {
- [ $(vercmp "$2" '1.26-4') -gt 0 ] || cat <<EOF
-Config file have been moved from /etc/ipvsadm.rules to /etc/ipvsadm.conf.
-You can revert to the previous location by editing /etc/conf.d/ipvsadm.
-EOF
-}
-
-# vim:set ts=2 sw=2 ft=sh et:
Copied: ipvsadm/repos/community-i686/ipvsadm.install (from rev 90517, ipvsadm/trunk/ipvsadm.install)
===================================================================
--- community-i686/ipvsadm.install (rev 0)
+++ community-i686/ipvsadm.install 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,10 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ [ $(vercmp "$2" '1.26-4') -gt 0 ] || cat <<EOF
+Config file have been moved from /etc/ipvsadm.rules to /etc/ipvsadm.conf.
+You can revert to the previous location by editing /etc/conf.d/ipvsadm.
+EOF
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
Deleted: community-i686/ipvsadm.service
===================================================================
--- community-i686/ipvsadm.service 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-i686/ipvsadm.service 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,11 +0,0 @@
-[Unit]
-Description=IP Virtual Server
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/usr/lib/systemd/scripts/ipvsadm start
-ExecStop=/usr/lib/systemd/scripts/ipvsadm stop
-
-[Install]
-WantedBy=multi-user.target
Copied: ipvsadm/repos/community-i686/ipvsadm.service (from rev 90517, ipvsadm/trunk/ipvsadm.service)
===================================================================
--- community-i686/ipvsadm.service (rev 0)
+++ community-i686/ipvsadm.service 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,11 @@
+[Unit]
+Description=IP Virtual Server
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/lib/systemd/scripts/ipvsadm start
+ExecStop=/usr/lib/systemd/scripts/ipvsadm stop
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-i686/ipvsadm.systemd
===================================================================
--- community-i686/ipvsadm.systemd 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-i686/ipvsadm.systemd 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-CONFIG_FILE='/etc/ipvsadm.conf'
-
-case $1 in
- start)
- ipvsadm-restore < "$CONFIG_FILE"
- ;;
- stop)
- ipvsadm -C
- ;;
- save)
- ipvsadm-save -n > "$CONFIG_FILE"
- ;;
- *)
- echo "usage: ${0##*/} {start|stop|save}" >&2
- exit 1
- ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:
Copied: ipvsadm/repos/community-i686/ipvsadm.systemd (from rev 90517, ipvsadm/trunk/ipvsadm.systemd)
===================================================================
--- community-i686/ipvsadm.systemd (rev 0)
+++ community-i686/ipvsadm.systemd 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+CONFIG_FILE='/etc/ipvsadm.conf'
+
+case $1 in
+ start)
+ ipvsadm-restore < "$CONFIG_FILE"
+ ;;
+ stop)
+ ipvsadm -C
+ ;;
+ save)
+ ipvsadm-save -n > "$CONFIG_FILE"
+ ;;
+ *)
+ echo "usage: ${0##*/} {start|stop|save}" >&2
+ exit 1
+ ;;
+esac
+
+# vim:set ts=2 sw=2 ft=sh et:
Deleted: community-x86_64/01-fix-not-showing-all-server.patch
===================================================================
--- community-x86_64/01-fix-not-showing-all-server.patch 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-x86_64/01-fix-not-showing-all-server.patch 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,24 +0,0 @@
-diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h
---- ipvsadm-1.26.vanilla/libipvs/ip_vs.h 2011-02-06 18:38:57.000000000 -0800
-+++ ipvsadm-1.26/libipvs/ip_vs.h 2011-08-23 15:03:59.000000000 -0700
-@@ -413,7 +413,7 @@
- __IPVS_CMD_ATTR_MAX,
- };
-
--#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
-+#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)
-
- /*
- * Attributes used to describe a service
-diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c
-ipvsadm-1.26/libipvs/ip_vs_nl_policy.c
---- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c 2008-09-18
-08:57:37.000000000 -0700
-+++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c 2011-08-23 14:45:34.000000000 -0700
-@@ -26,6 +26,8 @@
- [IPVS_SVC_ATTR_TIMEOUT] = { .type = NLA_U32 },
- [IPVS_SVC_ATTR_NETMASK] = { .type = NLA_U32 },
- [IPVS_SVC_ATTR_STATS] = { .type = NLA_NESTED },
-+ [IPVS_SVC_ATTR_PE_NAME] = { .type = NLA_STRING,
-+ .maxlen = IP_VS_PENAME_MAXLEN},
- };
Copied: ipvsadm/repos/community-x86_64/01-fix-not-showing-all-server.patch (from rev 90517, ipvsadm/trunk/01-fix-not-showing-all-server.patch)
===================================================================
--- community-x86_64/01-fix-not-showing-all-server.patch (rev 0)
+++ community-x86_64/01-fix-not-showing-all-server.patch 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,24 @@
+diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs.h ipvsadm-1.26/libipvs/ip_vs.h
+--- ipvsadm-1.26.vanilla/libipvs/ip_vs.h 2011-02-06 18:38:57.000000000 -0800
++++ ipvsadm-1.26/libipvs/ip_vs.h 2011-08-23 15:03:59.000000000 -0700
+@@ -413,7 +413,7 @@
+ __IPVS_CMD_ATTR_MAX,
+ };
+
+-#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
++#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)
+
+ /*
+ * Attributes used to describe a service
+diff -urN ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c
+ipvsadm-1.26/libipvs/ip_vs_nl_policy.c
+--- ipvsadm-1.26.vanilla/libipvs/ip_vs_nl_policy.c 2008-09-18
+08:57:37.000000000 -0700
++++ ipvsadm-1.26/libipvs/ip_vs_nl_policy.c 2011-08-23 14:45:34.000000000 -0700
+@@ -26,6 +26,8 @@
+ [IPVS_SVC_ATTR_TIMEOUT] = { .type = NLA_U32 },
+ [IPVS_SVC_ATTR_NETMASK] = { .type = NLA_U32 },
+ [IPVS_SVC_ATTR_STATS] = { .type = NLA_NESTED },
++ [IPVS_SVC_ATTR_PE_NAME] = { .type = NLA_STRING,
++ .maxlen = IP_VS_PENAME_MAXLEN},
+ };
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-x86_64/PKGBUILD 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
-# Contributor: Judd Vinet <jvinet at zeroflux.org>
-
-pkgname=ipvsadm
-pkgver=1.26
-pkgrel=7
-pkgdesc='The IP Virtual Server administration utility'
-arch=('i686' 'x86_64')
-url='http://www.linuxvirtualserver.org/software/ipvs.html'
-license=('GPL2')
-depends=('libnl1' 'popt' 'bash')
-backup=("etc/$pkgname.conf")
-options=('!makeflags')
-install=$pkgname.install
-source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz"
- "$pkgname.systemd"
- "$pkgname.service"
- '01-fix-not-showing-all-server.patch')
-md5sums=('eac3ba3f62cd4dea2da353aeddd353a8'
- 'b45ef25d384a7a68b51ff80d0fe81dd2'
- 'dc87684064f85b64c1e79c1eac336303'
- 'e9fb77d2fbe2d3f41d60257316338543')
-
-build() {
- cd $pkgname-$pkgver
- patch -p1 -i ../01-fix-not-showing-all-server.patch
- make
-}
-
-package() {
- pushd $pkgname-$pkgver
- make \
- BUILD_ROOT="$pkgdir" \
- MANDIR=usr/share/man \
- SBIN="$pkgdir/usr/sbin" \
- INIT="$pkgdir/etc/rc.d" \
- install
- popd
- # systemd
- install -Dm 755 $pkgname.systemd \
- "$pkgdir/usr/lib/systemd/scripts/$pkgname"
- install -Dm 644 $pkgname.service \
- "$pkgdir/usr/lib/systemd/system/$pkgname.service"
- # remove legacy init system
- rm -rf "$pkgdir/etc/rc.d"
- # default config file
- install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: ipvsadm/repos/community-x86_64/PKGBUILD (from rev 90517, ipvsadm/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Judd Vinet <jvinet at zeroflux.org>
+
+pkgname=ipvsadm
+pkgver=1.26
+pkgrel=8
+pkgdesc='The IP Virtual Server administration utility'
+arch=('i686' 'x86_64')
+url='http://www.linuxvirtualserver.org/software/ipvs.html'
+license=('GPL2')
+depends=('libnl1' 'popt' 'bash')
+backup=("etc/$pkgname.conf")
+options=('!makeflags')
+install=$pkgname.install
+source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz"
+ "$pkgname.systemd"
+ "$pkgname.service"
+ '01-fix-not-showing-all-server.patch')
+md5sums=('eac3ba3f62cd4dea2da353aeddd353a8'
+ 'b45ef25d384a7a68b51ff80d0fe81dd2'
+ 'dc87684064f85b64c1e79c1eac336303'
+ 'e9fb77d2fbe2d3f41d60257316338543')
+
+prepare() {
+ patch -p1 -d $pkgname-$pkgver < 01-fix-not-showing-all-server.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ make \
+ BUILD_ROOT="$pkgdir" \
+ MANDIR=usr/share/man \
+ SBIN="$pkgdir/usr/bin" \
+ INIT="$pkgdir/etc/rc.d" \
+ install
+ popd
+ # systemd
+ install -Dm 755 $pkgname.systemd \
+ "$pkgdir/usr/lib/systemd/scripts/$pkgname"
+ install -Dm 644 $pkgname.service \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ # remove legacy init system
+ rm -rf "$pkgdir/etc/rc.d"
+ # default config file
+ install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: community-x86_64/ipvsadm.install
===================================================================
--- community-x86_64/ipvsadm.install 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-x86_64/ipvsadm.install 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,10 +0,0 @@
-## arg 1: the new package version
-## arg 2: the old package version
-post_upgrade() {
- [ $(vercmp "$2" '1.26-4') -gt 0 ] || cat <<EOF
-Config file have been moved from /etc/ipvsadm.rules to /etc/ipvsadm.conf.
-You can revert to the previous location by editing /etc/conf.d/ipvsadm.
-EOF
-}
-
-# vim:set ts=2 sw=2 ft=sh et:
Copied: ipvsadm/repos/community-x86_64/ipvsadm.install (from rev 90517, ipvsadm/trunk/ipvsadm.install)
===================================================================
--- community-x86_64/ipvsadm.install (rev 0)
+++ community-x86_64/ipvsadm.install 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,10 @@
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ [ $(vercmp "$2" '1.26-4') -gt 0 ] || cat <<EOF
+Config file have been moved from /etc/ipvsadm.rules to /etc/ipvsadm.conf.
+You can revert to the previous location by editing /etc/conf.d/ipvsadm.
+EOF
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
Deleted: community-x86_64/ipvsadm.service
===================================================================
--- community-x86_64/ipvsadm.service 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-x86_64/ipvsadm.service 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,11 +0,0 @@
-[Unit]
-Description=IP Virtual Server
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/usr/lib/systemd/scripts/ipvsadm start
-ExecStop=/usr/lib/systemd/scripts/ipvsadm stop
-
-[Install]
-WantedBy=multi-user.target
Copied: ipvsadm/repos/community-x86_64/ipvsadm.service (from rev 90517, ipvsadm/trunk/ipvsadm.service)
===================================================================
--- community-x86_64/ipvsadm.service (rev 0)
+++ community-x86_64/ipvsadm.service 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,11 @@
+[Unit]
+Description=IP Virtual Server
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/lib/systemd/scripts/ipvsadm start
+ExecStop=/usr/lib/systemd/scripts/ipvsadm stop
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-x86_64/ipvsadm.systemd
===================================================================
--- community-x86_64/ipvsadm.systemd 2013-05-12 23:51:10 UTC (rev 90517)
+++ community-x86_64/ipvsadm.systemd 2013-05-12 23:51:34 UTC (rev 90518)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-CONFIG_FILE='/etc/ipvsadm.conf'
-
-case $1 in
- start)
- ipvsadm-restore < "$CONFIG_FILE"
- ;;
- stop)
- ipvsadm -C
- ;;
- save)
- ipvsadm-save -n > "$CONFIG_FILE"
- ;;
- *)
- echo "usage: ${0##*/} {start|stop|save}" >&2
- exit 1
- ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:
Copied: ipvsadm/repos/community-x86_64/ipvsadm.systemd (from rev 90517, ipvsadm/trunk/ipvsadm.systemd)
===================================================================
--- community-x86_64/ipvsadm.systemd (rev 0)
+++ community-x86_64/ipvsadm.systemd 2013-05-12 23:51:34 UTC (rev 90518)
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+CONFIG_FILE='/etc/ipvsadm.conf'
+
+case $1 in
+ start)
+ ipvsadm-restore < "$CONFIG_FILE"
+ ;;
+ stop)
+ ipvsadm -C
+ ;;
+ save)
+ ipvsadm-save -n > "$CONFIG_FILE"
+ ;;
+ *)
+ echo "usage: ${0##*/} {start|stop|save}" >&2
+ exit 1
+ ;;
+esac
+
+# vim:set ts=2 sw=2 ft=sh et:
More information about the arch-commits
mailing list