name = aiccu
version = 20070115
-release = 1
+release = 2
groups = System/Daemons
url = http://www.sixxs.net/tools/aiccu/
end
source_dl = http://www.sixxs.net/archive/sixxs/aiccu/unix/
+sources = %{name}_%{version}.tar.gz
build
requires
DIR_APP = %{DIR_SRC}/%{name}
- build
- %{DO_FIX_LIBTOOL}
- make %{PARALLELISMFLAGS} RPM_OPT_FLAGS="%{CFLAGS}"
- end
+ make_build_targets += \
+ RPM_OPT_FLAGS="%{CFLAGS}"
+ # Remove old sysvinit stuff and emtpy usr/share directory.
install_cmds
rm -rvf %{BUILDROOT}/{etc,usr/share}
end
packages
package %{name}
+ script postin
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ script postup
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ script postun
+ systemctl daemon-reload >/dev/null 2>&1 || :
+ end
end
package %{name}-debuginfo
--- /dev/null
+[Unit]
+Description=AICCU (Automatic IPv6 Connectivity Configuration Utility) on %I
+
+[Service]
+ExecStartPre=/usr/lib/network/helpers/aiccu-config-helper create %I
+ExecStart=/usr/sbin/aiccu start /run/network/%I/aiccu.conf
+ExecStop=/usr/sbin/aiccu stop /run/network/%I/aiccu.conf
+ExecStopPost=/usr/lib/network/helpers/aiccu-config-helper remove %I
+
+UtmpIdentifier=%I
+
+# WARNING: never run AICCU from DaemonTools or a similar automated
+# 'restart' tool/script. When AICCU does not start, it has a reason
+# not to start which it gives on either the stdout or in the (sys)log
+# file. The TIC server *will* automatically disable accounts which
+# are detected to run in this mode.
+Restart=no