* [gentoo-commits] gentoo-x86 commit in net-misc/aiccu/files: aiccu-2007.01.15-systemd.patch
@ 2013-05-24 7:09 Michael Weber (xmw)
0 siblings, 0 replies; 3+ messages in thread
From: Michael Weber (xmw) @ 2013-05-24 7:09 UTC (permalink / raw
To: gentoo-commits
xmw 13/05/24 07:09:06
Added: aiccu-2007.01.15-systemd.patch
Log:
Add systemd support (thanks Łukasz Stelmach, bug 444692)
(Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Revision Changes Path
1.1 net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?rev=1.1&content-type=text/plain
Index: aiccu-2007.01.15-systemd.patch
===================================================================
--- /dev/null
+++ aiccu-2007.01.15/doc/aiccu.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Automatic IPv6 Connectivity Client Utility
+After=time-sync.target network.target
+ConditionPathExists=/etc/aiccu.conf
+
+
+[Service]
+Type=notify
+ExecStart=/usr/sbin/aiccu start
+ExecStop=/usr/sbin/aiccu stop
+
+[Install]
+WantedBy=multi-user.target
--- aiccu-2007.01.15/unix-console/Makefile
+++ aiccu-2007.01.15/unix-console/Makefile
@@ -48,6 +48,10 @@ ifeq ($(shell uname | grep -c "Linux"),1)
SRCS += ../common/aiccu_linux.c
OBJS += ../common/aiccu_linux.o
LIBS += -lpthread -lresolv
+ifeq (1,HAVE_SYSTEMD)
+LIBS += -lsystemd-daemon
+CFLAGS += -DHAVE_SYSTEMD
+endif
endif
# FreeBSD
--- aiccu-2007.01.15/unix-console/main.c
+++ aiccu-2007.01.15/unix-console/main.c
@@ -12,6 +12,9 @@
#include "../common/aiccu.h"
#include "../common/tun.h"
+#ifdef HAVE_SYSTEMD
+#include <systemd/sd-daemon.h>
+#endif
#ifndef _WIN32
/* Enable/Disable heartbeating */
@@ -478,6 +481,10 @@ int main(int argc, char *argv[])
aiccu_exec("%s", g_aiccu->setupscript);
}
+#ifdef HAVE_SYSTEMD
+ /* Tell systemd we are operational. */
+ sd_notify(0, "READY=1");
+#endif
/* We need to stay running when doing Heartbeat or AYIYA */
if ( strcasecmp(hTunnel->sType, "6in4-heartbeat") == 0 ||
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-misc/aiccu/files: aiccu-2007.01.15-systemd.patch
@ 2013-05-27 5:23 Michael Weber (xmw)
0 siblings, 0 replies; 3+ messages in thread
From: Michael Weber (xmw) @ 2013-05-27 5:23 UTC (permalink / raw
To: gentoo-commits
xmw 13/05/27 05:23:57
Modified: aiccu-2007.01.15-systemd.patch
Log:
Fix test in Makefile patch, thanks Łukasz Stelmach for testing
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Revision Changes Path
1.2 net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?r1=1.1&r2=1.2
Index: aiccu-2007.01.15-systemd.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- aiccu-2007.01.15-systemd.patch 24 May 2013 07:09:06 -0000 1.1
+++ aiccu-2007.01.15-systemd.patch 27 May 2013 05:23:57 -0000 1.2
@@ -20,7 +20,7 @@
SRCS += ../common/aiccu_linux.c
OBJS += ../common/aiccu_linux.o
LIBS += -lpthread -lresolv
-+ifeq (1,HAVE_SYSTEMD)
++ifeq (1,$(HAVE_SYSTEMD))
+LIBS += -lsystemd-daemon
+CFLAGS += -DHAVE_SYSTEMD
+endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-misc/aiccu/files: aiccu-2007.01.15-systemd.patch
@ 2014-07-16 18:04 Pacho Ramos (pacho)
0 siblings, 0 replies; 3+ messages in thread
From: Pacho Ramos (pacho) @ 2014-07-16 18:04 UTC (permalink / raw
To: gentoo-commits
pacho 14/07/16 18:04:53
Modified: aiccu-2007.01.15-systemd.patch
Log:
Fix systemd linking (#502448 by Jonathan Callen), drop old
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Revision Changes Path
1.3 net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch?r1=1.2&r2=1.3
Index: aiccu-2007.01.15-systemd.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/aiccu/files/aiccu-2007.01.15-systemd.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- aiccu-2007.01.15-systemd.patch 27 May 2013 05:23:57 -0000 1.2
+++ aiccu-2007.01.15-systemd.patch 16 Jul 2014 18:04:53 -0000 1.3
@@ -21,7 +21,7 @@
OBJS += ../common/aiccu_linux.o
LIBS += -lpthread -lresolv
+ifeq (1,$(HAVE_SYSTEMD))
-+LIBS += -lsystemd-daemon
++LIBS += $(shell pkg-config --libs libsystemd 2>/dev/null || pkg-config --libs libsystemd-daemon)
+CFLAGS += -DHAVE_SYSTEMD
+endif
endif
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-16 18:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 18:04 [gentoo-commits] gentoo-x86 commit in net-misc/aiccu/files: aiccu-2007.01.15-systemd.patch Pacho Ramos (pacho)
-- strict thread matches above, loose matches on Subject: below --
2013-05-27 5:23 Michael Weber (xmw)
2013-05-24 7:09 Michael Weber (xmw)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox