diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2010-06-28 20:36:35 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2010-06-28 20:36:35 +0000 |
commit | 559f63a65216e9a625ff92696812f45509d148ee (patch) | |
tree | f79ec4f58308ce98796be3ed2e4f9c3a800f7bed /net-misc | |
parent | Fix manifest (diff) | |
download | historical-559f63a65216e9a625ff92696812f45509d148ee.tar.gz historical-559f63a65216e9a625ff92696812f45509d148ee.tar.bz2 historical-559f63a65216e9a625ff92696812f45509d148ee.zip |
Revbump. Fix bug 248669 and 318033. Some QA fixes. Add a Makefile patch to use LDFLAGS properly, make stripping optional and respect CFLAGS properly. Remove old ebuilds.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/aiccu/ChangeLog | 17 | ||||
-rw-r--r-- | net-misc/aiccu/Manifest | 26 | ||||
-rw-r--r-- | net-misc/aiccu/aiccu-2005.01.31-r1.ebuild | 45 | ||||
-rw-r--r-- | net-misc/aiccu/aiccu-2005.01.31.ebuild | 34 | ||||
-rw-r--r-- | net-misc/aiccu/aiccu-2006.07.25.ebuild | 45 | ||||
-rw-r--r-- | net-misc/aiccu/aiccu-2007.01.15-r1.ebuild (renamed from net-misc/aiccu/aiccu-2007.01.07.ebuild) | 38 | ||||
-rw-r--r-- | net-misc/aiccu/aiccu-2007.01.15.ebuild | 5 | ||||
-rw-r--r-- | net-misc/aiccu/files/aiccu-2007.01.15-Makefile.patch | 79 | ||||
-rw-r--r-- | net-misc/aiccu/files/aiccu.init.gentoo.patch | 24 | ||||
-rw-r--r-- | net-misc/aiccu/files/init-after-ntp-client.patch | 11 | ||||
-rw-r--r-- | net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 | 65 |
11 files changed, 156 insertions, 233 deletions
diff --git a/net-misc/aiccu/ChangeLog b/net-misc/aiccu/ChangeLog index 2e6960bbfaf7..c7cbc4516d2a 100644 --- a/net-misc/aiccu/ChangeLog +++ b/net-misc/aiccu/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for net-misc/aiccu -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/ChangeLog,v 1.21 2008/08/12 20:27:50 bluebird Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/ChangeLog,v 1.22 2010/06/28 20:36:34 idl0r Exp $ + +*aiccu-2007.01.15-r1 (28 Jun 2010) + + 28 Jun 2010; Christian Ruppert <idl0r@gentoo.org> + -aiccu-2005.01.31.ebuild, -aiccu-2005.01.31-r1.ebuild, + -aiccu-2006.07.25.ebuild, -aiccu-2007.01.07.ebuild, + aiccu-2007.01.15.ebuild, +aiccu-2007.01.15-r1.ebuild, + +files/aiccu-2007.01.15-Makefile.patch, +files/aiccu.init.gentoo.patch, + -files/init-after-ntp-client.patch, + -files/patch_aiccu_ticservpar_2005.01.31: + Revbump. Fix bug 248669 and 318033. Some QA fixes. Add a Makefile patch to + use LDFLAGS properly, make stripping optional and respect CFLAGS properly. + Remove old ebuilds. 12 Aug 2008; Friedrich Oslage <bluebird@gentoo.org> aiccu-2007.01.15.ebuild: diff --git a/net-misc/aiccu/Manifest b/net-misc/aiccu/Manifest index 782599533477..32533b78cc43 100644 --- a/net-misc/aiccu/Manifest +++ b/net-misc/aiccu/Manifest @@ -1,14 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX aiccu-2007.01.15-Makefile.patch 2128 RMD160 c752978764ecef00e7773c2be45c58614abe3155 SHA1 9039612abd7629857bd3103c12982d9cfafdec6b SHA256 8e282eb8004da15927cb4811e3a3c007cbfb39fab15483b5b918f78e0cfbfcd6 AUX aiccu-2007.01.15-as-needed.patch 444 RMD160 f37720d9510b52081e7bb7456bacb36e20abdcb0 SHA1 97f00da7df009e85372bf2877dc3f94120b4d178 SHA256 94e9a0a98e3c6d05b049cb385604f149cda76d73351966b88dd4ae264fb656c3 -AUX init-after-ntp-client.patch 294 RMD160 ca788ae50a813c4c435dff4c4d6c2f4b7a8594dc SHA1 0bfc9972c6bdbcf4c3ecc67bdfd87389f831f6ea SHA256 e6e041db420f9de907877719b454e3ac8075b52f6bd63d8f57533071e57dc1b8 -AUX patch_aiccu_ticservpar_2005.01.31 2368 RMD160 d84dcede2a5a2f19a4562bce1fb1a9c1343febca SHA1 259f8c199e90e121aec615f07411586d94a3ac19 SHA256 ca50745c06d7d48e78532c8a6d05743d5b67cd4a607411888493447272028536 -DIST aiccu_2005.01.31.tar.gz 45672 RMD160 48f9508bb62984acc8cde8419765c5003a7200f4 SHA1 2d3e9e1844e7e2b2ae144b00974a9d1022b45396 SHA256 1baac8fb62490e480efa8b5b6b3b4d3d9c19876316456e4b6ada2cec0c36bc88 -DIST aiccu_2006.07.25.tar.gz 64161 RMD160 599d181bfccb4a1a30d315f60469078bcb269270 SHA1 c031f4b29a92a0c1b5a0d4b9d9e81d6fe4da92aa SHA256 ce735aced6d18594a726c9b027ddc80ca1ff658f6e436c530b60779f2dc5d4df -DIST aiccu_20070107.tar.gz 68415 RMD160 a2a35402d93a7888f42a86cdb6877baee6f98710 SHA1 2777e55b0e2c45758f75b180d8affdf9ac062556 SHA256 73b8deb2364b34497daec9fac2b85bfea3facb45f4b9f48e2575e79a3fbbc691 +AUX aiccu.init.gentoo.patch 651 RMD160 4e0c01931cdbc4dfb4109881ced9ece8e1e88dbb SHA1 56aa9e34e3bcee2ccfa308ef9baf84121dab628f SHA256 bcb1e6f002b83c519fed4dd54012a20828e86e82e54d1f0142fe1b50c1a59011 DIST aiccu_20070115.tar.gz 70056 RMD160 9415899c98c1f7e84b9711017b82a3a0ea2ae9de SHA1 7b3c51bfe291c777e74b2688e9339b4fb72e6a39 SHA256 2260f426c13471169ccff8cb4a3908dc5f79fda18ddb6a55363e7824e6c4c760 -EBUILD aiccu-2005.01.31-r1.ebuild 1221 RMD160 7246d055f873bffe8aa2d1b95bbb0f7ff4a7da7e SHA1 428605ed0c10d09f4093e4af8fc405b44a4600d2 SHA256 0aad44e233c2a4a2f14a56f2b3df75644ba5fc0e2e0703cfa94526c666bb2e89 -EBUILD aiccu-2005.01.31.ebuild 966 RMD160 e7b734c6b38b0833044e1fd66afaa30a87cc2426 SHA1 eeee7d89767636d2a5cf666d000fadfb3107ddb4 SHA256 62707fdae3b456fce0d207662f57786fb1abe361ff0087d9e011f3dd0e4e1b5d -EBUILD aiccu-2006.07.25.ebuild 1134 RMD160 4a7a6ed96076c2f4ff970b19a5f864dce1e61056 SHA1 080324efdb4ec7577cd877a06c75415fa4531d3e SHA256 0f5007271568505f0318359db2d97eabe655b666f3aabfbd1801c744adf7c491 -EBUILD aiccu-2007.01.07.ebuild 1133 RMD160 09ef78e152efa73d5cff41877a77b580e54569fa SHA1 c5ae79f0116c192f3ea2cf30ba382c6b6d042ab8 SHA256 3ef4dba930abdfa6719632215349dab5389a40bf653797515f8bab906e40a6ed -EBUILD aiccu-2007.01.15.ebuild 1148 RMD160 c5be7ed4957a36b00270c999ac804a12b5c91546 SHA1 4c9d295b722420bb60d338b89ee3b6e6e8fff567 SHA256 c49f9d83bf13ee071581e1013df338af4b4c435684f18baaf74e1a874b20c486 -MISC ChangeLog 2807 RMD160 4d052d3f98d473a2d2e8a884674ba7fe4dc45e5c SHA1 0430e52342bcc8931a1a82f9ebe246423bccd17a SHA256 93920ada78c5480ed0d7f5f5973f2ab2a631e3ac8090d08cd0c9c664148456a0 +EBUILD aiccu-2007.01.15-r1.ebuild 1289 RMD160 d9908123edd337adaeeadd0b73ae988b39086dfd SHA1 b1eeb5b7edbc80ec09e7c12b02e7f631d52a8157 SHA256 b3ed63f76364b3f2d7fb044fe261e96a79e335f8ce5fa5b6f2487fe5fd3ba4d5 +EBUILD aiccu-2007.01.15.ebuild 1136 RMD160 6b2c429e706f0f6af255099a74c6955fbecc92d3 SHA1 949942c8e070e432a093b8aa75f0fce6feab96c5 SHA256 81fa2c39768713508bbf2ec14b42ed536a68a92d7b9e6c074983cca7fa6f7e30 +MISC ChangeLog 3392 RMD160 d9d650077bfd634d3b0bddda154f40ceb5452025 SHA1 37e226075b270c00f124c42056ebdca637a1558e SHA256 ce7e82e31336920f74d3abec412b1e1baed9ee8b00f53ac75e5001d483499141 MISC metadata.xml 248 RMD160 7117fea3ec12e78757ff36ad7d4009feb331d3e5 SHA1 24d82a142e104a28482582fc53f9558d09176d9b SHA256 19d6ac2bd765bf4172d785c2a2f4dc669b689489d0716f3a80d569278a59f923 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +iEYEARECAAYFAkwpB9gACgkQixe2jn+ufTiL6gCfR410cFa+Y1HmxmYUxyky4i86 +eAsAn2uvpVnRmhmuL9j9tFA2y9woByt9 +=XMbr +-----END PGP SIGNATURE----- diff --git a/net-misc/aiccu/aiccu-2005.01.31-r1.ebuild b/net-misc/aiccu/aiccu-2005.01.31-r1.ebuild deleted file mode 100644 index ce7367bcd580..000000000000 --- a/net-misc/aiccu/aiccu-2005.01.31-r1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2005.01.31-r1.ebuild,v 1.7 2007/08/25 14:37:19 vapier Exp $ - -inherit eutils - -DESCRIPTION="AICCU Client to configure an IPv6 tunnel to SixXS." -HOMEPAGE="http://www.sixxs.net/tools/aiccu" -SRC_URI="http://www.sixxs.net/archive/sixxs/${PN}/unix/${PN}_${PV}.tar.gz" - -LICENSE="AICCU" -SLOT="0" -KEYWORDS="~amd64 arm ~hppa ~ppc x86" -IUSE="" -DEPEND="sys-apps/iproute2" -S=${WORKDIR}/${PN} - -src_unpack () { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/patch_aiccu_ticservpar_${PV} - epatch ${FILESDIR}/init-after-ntp-client.patch - sed -e 's/ip -6 ro /ip -6 route /' -i common/aiccu_linux.c - -} - -src_compile() { - emake RPM_OPT_FLAGS="${CFLAGS}" || die "Build Failed" -} - -src_install() { - dosbin unix-console/aiccu - insopts -m 600 - insinto /etc - doins doc/aiccu.conf - dodoc doc/{HOWTO,LICENSE,README,changelog} - newinitd doc/aiccu.init.gentoo aiccu -} - -pkg_postinst() { - einfo "The aiccu ebuild installs an init script named 'aiccu'" - einfo "To add support for a SixXS connection at startup, do" - einfo "edit your /etc/aiccu.conf and do" - einfo "# rc-update add aiccu default" -} diff --git a/net-misc/aiccu/aiccu-2005.01.31.ebuild b/net-misc/aiccu/aiccu-2005.01.31.ebuild deleted file mode 100644 index 1c35a58c35d2..000000000000 --- a/net-misc/aiccu/aiccu-2005.01.31.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2005.01.31.ebuild,v 1.4 2006/03/02 19:17:18 jokey Exp $ - -DESCRIPTION="AICCU Client to configure an IPv6 tunnel to SixXS." -HOMEPAGE="http://www.sixxs.net/" -SRC_URI="http://www.sixxs.net/archive/sixxs/aiccu/unix/aiccu_${PV}.tar.gz" - -LICENSE="AICCU" -SLOT="0" -KEYWORDS="~x86 ~amd64 ~arm" -IUSE="" -DEPEND="" -S=${WORKDIR}/aiccu - -src_compile() { - emake RPM_OPT_FLAGS="${CFLAGS}" || die "Build Failed" -} - -src_install() { - dosbin unix-console/aiccu - insopts -m 600 - insinto /etc - doins doc/aiccu.conf - dodoc doc/{HOWTO,LICENSE,README,changelog} - newinitd doc/aiccu.init.gentoo aiccu -} - -pkg_postinst() { - einfo "The aiccu ebuild installs an init script named 'aiccu'" - einfo "To add support for a SixXS connection at startup, do" - einfo "edit your /etc/aiccu.conf and do" - einfo "# rc-update add aiccu default" -} diff --git a/net-misc/aiccu/aiccu-2006.07.25.ebuild b/net-misc/aiccu/aiccu-2006.07.25.ebuild deleted file mode 100644 index 357f1ee0ef47..000000000000 --- a/net-misc/aiccu/aiccu-2006.07.25.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2006.07.25.ebuild,v 1.4 2007/07/12 02:52:15 mr_bones_ Exp $ - -inherit eutils - -DESCRIPTION="AICCU Client to configure an IPv6 tunnel to SixXS" -HOMEPAGE="http://www.sixxs.net/" -SRC_URI="http://www.sixxs.net/archive/sixxs/aiccu/unix/${PN}_${PV}.tar.gz" - -LICENSE="SixXS" -SLOT="0" -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86" -IUSE="" -DEPEND="net-libs/gnutls - sys-apps/iproute2" -S=${WORKDIR}/aiccu - -src_unpack () { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/init-after-ntp-client.patch -} - -src_compile() { - cd ${S} - export RPM_OPT_FLAGS=${CFLAGS} - make || die "Build Failed" -} - -src_install() { - dosbin unix-console/aiccu - insopts -m 600 - insinto /etc - doins doc/aiccu.conf - dodoc doc/{HOWTO,LICENSE,README,changelog} - newinitd doc/aiccu.init.gentoo aiccu -} - -pkg_postinst() { - einfo "The aiccu ebuild installs an init script named 'aiccu'" - einfo "To add support for a SixXS connection at startup, do" - einfo "edit your /etc/aiccu.conf and do" - einfo "# rc-update add aiccu default" -} diff --git a/net-misc/aiccu/aiccu-2007.01.07.ebuild b/net-misc/aiccu/aiccu-2007.01.15-r1.ebuild index 6d0be86550de..60169676d122 100644 --- a/net-misc/aiccu/aiccu-2007.01.07.ebuild +++ b/net-misc/aiccu/aiccu-2007.01.15-r1.ebuild @@ -1,40 +1,44 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2007.01.07.ebuild,v 1.6 2007/08/25 14:37:19 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2007.01.15-r1.ebuild,v 1.1 2010/06/28 20:36:34 idl0r Exp $ -inherit eutils +EAPI=3 + +inherit toolchain-funcs eutils DESCRIPTION="AICCU Client to configure an IPv6 tunnel to SixXS" -HOMEPAGE="http://www.sixxs.net/" +HOMEPAGE="http://www.sixxs.net/tools/aiccu" SRC_URI="http://www.sixxs.net/archive/sixxs/aiccu/unix/${PN}_${PV//\./}.tar.gz" LICENSE="SixXS" SLOT="0" -KEYWORDS="~amd64 arm hppa ~ppc x86" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" IUSE="" DEPEND="net-libs/gnutls - sys-apps/iproute2" + sys-apps/iproute2" S=${WORKDIR}/aiccu -src_unpack () { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/init-after-ntp-client.patch +src_prepare() { + epatch "${FILESDIR}/aiccu.init.gentoo.patch" \ + "${FILESDIR}/${P}-Makefile.patch" } src_compile() { - cd ${S} - export RPM_OPT_FLAGS=${CFLAGS} - make || die "Build Failed" + # Don't use main Makefile since it requires additional dependencies which + # are useless for us. + emake CC=$(tc-getCC) STRIP= -C unix-console || die } src_install() { - dosbin unix-console/aiccu + dosbin unix-console/aiccu || die + insopts -m 600 insinto /etc - doins doc/aiccu.conf - dodoc doc/{HOWTO,LICENSE,README,changelog} - newinitd doc/aiccu.init.gentoo aiccu + doins doc/aiccu.conf || die + + dodoc doc/{HOWTO,README,changelog} + + newinitd doc/aiccu.init.gentoo aiccu || die } pkg_postinst() { diff --git a/net-misc/aiccu/aiccu-2007.01.15.ebuild b/net-misc/aiccu/aiccu-2007.01.15.ebuild index 1cf2a844aec9..ed175dab4208 100644 --- a/net-misc/aiccu/aiccu-2007.01.15.ebuild +++ b/net-misc/aiccu/aiccu-2007.01.15.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2007.01.15.ebuild,v 1.10 2008/08/12 20:27:50 bluebird Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/aiccu/aiccu-2007.01.15.ebuild,v 1.11 2010/06/28 20:36:34 idl0r Exp $ inherit eutils @@ -24,7 +24,6 @@ src_unpack() { } src_compile() { - cd ${S} export RPM_OPT_FLAGS=${CFLAGS} make || die "Build Failed" } diff --git a/net-misc/aiccu/files/aiccu-2007.01.15-Makefile.patch b/net-misc/aiccu/files/aiccu-2007.01.15-Makefile.patch new file mode 100644 index 000000000000..c0eabbefd906 --- /dev/null +++ b/net-misc/aiccu/files/aiccu-2007.01.15-Makefile.patch @@ -0,0 +1,79 @@ +--- unix-console/Makefile.old 2010-06-28 21:56:32.287782600 +0200 ++++ unix-console/Makefile 2010-06-28 22:15:56.232637681 +0200 +@@ -25,14 +25,11 @@ CWARNS += -W -Wall -Wshadow -Wpointer-ar + # CWARNS += -Wpacked + + #CFLAGS += $(CWARNS) -D_GNU_SOURCE -D_DEBUG -g3 -O0 +-CFLAGS += $(CWARNS) -D_GNU_SOURCE ++CFLAGS ?= $(CWARNS) -O3 ++CFLAGS += -D_GNU_SOURCE + CC = @gcc + RM = rm +- +-# Add -O3 when nothing is specified yet +-ifeq ($(shell echo $(CFLAGS) | grep -c "\-O"),0) +-CFLAGS += -O3 +-endif ++STRIP = strip + + # This is a console client + CFLAGS += -D AICCU_CONSOLE +@@ -42,7 +39,7 @@ CFLAGS += -D AICCU_CONSOLE + # Currently defaultly builds only on Linux, but other platforms might easily also support it + ifeq ($(shell uname | grep -c "Linux"),1) + CFLAGS += -D AICCU_GNUTLS +-LDFLAGS += -lgnutls ++LIBS += -lgnutls + endif + + # Linux +@@ -50,7 +47,7 @@ ifeq ($(shell uname | grep -c "Linux"),1 + CFLAGS += -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\"" + SRCS += ../common/aiccu_linux.c + OBJS += ../common/aiccu_linux.o +-LDFLAGS += -lpthread -lresolv ++LIBS += -lpthread -lresolv + endif + + # FreeBSD +@@ -118,7 +115,7 @@ ifeq ($(shell uname | grep -c "Darwin"), + CFLAGS += -D_DARWIN -D NEED_IFHEAD -D AICCU_TYPE="\"darwin\"" + SRCS += ../common/aiccu_darwin.c + OBJS += ../common/aiccu_darwin.o +-LDFLAGS += -lresolv ++LIBS += -lresolv + endif + + # SunOS / Solaris +@@ -126,7 +123,7 @@ ifeq ($(shell uname | grep -c "SunOS"),1 + CFLAGS += -D_SUNOS -D AICCU_TYPE="\"sunos\"" + SRCS += ../common/aiccu_sunos.c + OBJS += ../common/aiccu_sunos.o +-LDFLAGS += -lsocket -lnsl -lresolv ++LIBS += -lsocket -lnsl -lresolv + endif + + # AIX +@@ -137,17 +134,19 @@ CFLAGS += -D AICCU_CONSOLE + CFLAGS += -D_AIX -D AICCU_TYPE="\"aix\"" + SRCS += ../common/aiccu_aix.c + OBJS += ../common/aiccu_aix.o +-LDFLAGS += -lpthread ++LIBS += -lpthread + endif + + + all: aiccu + + aiccu: $(OBJS) ${SRCS} ${INCS} +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + ifeq ($(shell echo $(CFLAGS) | grep -c "DEBUG"),0) + ifeq ($(shell echo "$(RPM_OPT_FLAGS)" | wc -c),1) +- strip $@ ++ifdef STRIP ++ $(STRIP) $@ ++endif + endif + endif + diff --git a/net-misc/aiccu/files/aiccu.init.gentoo.patch b/net-misc/aiccu/files/aiccu.init.gentoo.patch new file mode 100644 index 000000000000..5b20524c80d3 --- /dev/null +++ b/net-misc/aiccu/files/aiccu.init.gentoo.patch @@ -0,0 +1,24 @@ +--- doc/aiccu.init.gentoo.old 2010-06-28 21:28:21.527614775 +0200 ++++ doc/aiccu.init.gentoo 2010-06-28 21:36:49.651781540 +0200 +@@ -23,14 +23,19 @@ checkconfig() { + start() { + checkconfig || return 1 + ebegin "Starting aiccu" +- start-stop-daemon --start --oknodo --quiet --exec /usr/sbin/aiccu -- start ++ start-stop-daemon --start --quiet --exec /usr/sbin/aiccu -- start + eend $? + } + + + stop() { + ebegin "Stopping aiccu" +- start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/aiccu -- stop ++ start-stop-daemon --stop --pidfile /var/run/aiccu.pid --quiet --exec /usr/sbin/aiccu -- stop + eend $? + } + ++restart() { ++ stop ++ sleep 3 ++ start ++} diff --git a/net-misc/aiccu/files/init-after-ntp-client.patch b/net-misc/aiccu/files/init-after-ntp-client.patch deleted file mode 100644 index 3a061eba5acc..000000000000 --- a/net-misc/aiccu/files/init-after-ntp-client.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -uNr aiccu.orig/doc/aiccu.init.gentoo aiccu/doc/aiccu.init.gentoo ---- aiccu.orig/doc/aiccu.init.gentoo 2006-05-17 15:42:49.000000000 +0200 -+++ aiccu/doc/aiccu.init.gentoo 2006-05-17 15:43:04.000000000 +0200 -@@ -2,6 +2,7 @@ - - depend() { - need net -+ after ntp-client - } - - checkconfig() { diff --git a/net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 b/net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 deleted file mode 100644 index bc29e3eee919..000000000000 --- a/net-misc/aiccu/files/patch_aiccu_ticservpar_2005.01.31 +++ /dev/null @@ -1,65 +0,0 @@ -diff -urN aiccu_2005.01.31/common/aiccu.c aiccu-work/common/aiccu.c ---- aiccu_2005.01.31/common/aiccu.c 2005-01-11 13:16:09.000000000 +0100 -+++ aiccu-work/common/aiccu.c 2005-07-20 14:25:46.000000000 +0200 -@@ -18,6 +18,7 @@ - struct pl_rule aiccu_conf_rules[] = - { - /* Configuration */ -+ {"tic_server", PLRT_STRING, offsetof(struct AICCU_conf, tic_server)}, - {"username", PLRT_STRING, offsetof(struct AICCU_conf, username)}, - {"password", PLRT_STRING, offsetof(struct AICCU_conf, password)}, - {"ipv4_interface", PLRT_STRING, offsetof(struct AICCU_conf, ipv4_interface)}, -@@ -87,6 +88,12 @@ - - fprintf(f, "# AICCU Configuration (Automatically stored by aiccu %s)\n", AICCU_VER); - fprintf(f, "\n"); -+ if(g_aiccu->tic_server) -+ { -+ fprintf(f, "# TIC server\n"); -+ fprintf(f, "tic_server %s\n", g_aiccu->tic_server); -+ fprintf(f, "\n"); -+ } - fprintf(f, "# Login information\n"); - fprintf(f, "username %s\n", g_aiccu->username); - fprintf(f, "password %s\n", g_aiccu->password); -@@ -116,6 +123,8 @@ - void aiccu_FreeConfig() - { - if (!g_aiccu) return; -+ if (g_aiccu->tic_server) free(g_aiccu->tic_server); -+ g_aiccu->tic_server = NULL; - if (g_aiccu->username) free(g_aiccu->username); - g_aiccu->username = NULL; - if (g_aiccu->password) free(g_aiccu->password); -diff -urN aiccu_2005.01.31/common/aiccu.h aiccu-work/common/aiccu.h ---- aiccu_2005.01.31/common/aiccu.h 2005-01-31 20:05:52.000000000 +0100 -+++ aiccu-work/common/aiccu.h 2005-07-20 14:24:44.000000000 +0200 -@@ -73,6 +73,7 @@ - bool verbose; - - /* Only for AICCU */ -+ char *tic_server; - char *username; - char *password; - char *ipv4_interface; -diff -urN aiccu_2005.01.31/common/tic.c aiccu-work/common/tic.c ---- aiccu_2005.01.31/common/tic.c 2005-02-02 19:52:29.000000000 +0100 -+++ aiccu-work/common/tic.c 2005-07-20 14:26:08.000000000 +0200 -@@ -63,6 +63,7 @@ - bool tic_Login(struct TIC_conf *tic, char *username, char *password) - { - char buf[1024], sSignature[33], sChallenge[1024]; -+ char *server = g_aiccu->tic_server; - int i; - #ifndef _WIN32 - struct utsname utsname; -@@ -74,7 +75,7 @@ - #endif - - /* Connect to the TIC server */ -- tic->sock = connect_client(TIC_SERVER, TIC_PORT, AF_INET, SOCK_STREAM); -+ tic->sock = connect_client((server?server:TIC_SERVER), TIC_PORT, AF_INET, SOCK_STREAM); - if (tic->sock == -1) - { - dolog(LOG_ERR, "Couldn't connect to the TIC server\n"); - |