Matt Domsch b937ff4
############################################################
Matt Domsch b937ff4
# AICCU - Automatic IPv6 Connectivity Client Utility
Matt Domsch b937ff4
# by Jeroen Massar <jeroen@sixxs.net>
Matt Domsch b937ff4
# (c) Copyright 2003-2005 SixXS
Matt Domsch b937ff4
############################################################
Matt Domsch b937ff4
# AICCU RPM Spec File
Matt Domsch b937ff4
############################################################
Matt Domsch b937ff4
Matt Domsch 851ef5f
Summary:   SixXS Automatic IPv6 Connectivity Client Utility
Matt Domsch b937ff4
Name:      aiccu
Matt Domsch 47ff8dc
Version:   2007.01.15
8fcb3a0
Release:   31%{?dist}
Matt Domsch 5c3cfb1
License:   BSD
Matt Domsch 5c3cfb1
Group:     System Environment/Daemons
Matt Domsch b937ff4
URL:       http://www.sixxs.net/tools/aiccu/
Jochen Schmitt 2c5f12e
Source0:    http://www.sixxs.net/archive/sixxs/aiccu/unix/aiccu_20070115.tar.gz
Jochen Schmitt 2c5f12e
Source1:   aiccu.service
Jochen Schmitt 2c5f12e
Patch0: aiccu-cloexec.patch
Jochen Schmitt 2c5f12e
Patch1: aiccu-run.patch
Conrad Meyer dae47ea
Patch2: aiccu-syslog-daemon.patch
Pavel Šimerda dbd7ced
Patch3: aiccu-gnutls34.patch
37a443f
Patch4: aiccu-setupscript.patch
9a45c94
BuildRequires:  gcc
Matt Domsch 684567d
BuildRequires: gnutls-devel
Jochen Schmitt 2c5f12e
BuildRequires: systemd-units
Matt Domsch b937ff4
Requires:  iproute
Jochen Schmitt 2c5f12e
Requires(post): systemd-units
Jochen Schmitt 2c5f12e
Requires(preun): systemd-units
Jochen Schmitt 2c5f12e
Requires(postun): systemd-units
Matt Domsch b937ff4
Matt Domsch b937ff4
%description
Matt Domsch b937ff4
This client automatically gives one IPv6 connectivity
Matt Domsch b937ff4
without having to manually configure interfaces etc.
Matt Domsch b937ff4
One does need a SixXS account and at least a tunnel. These
Matt Domsch b937ff4
can be freely & gratis requested from the SixXS website.
Matt Domsch b937ff4
For more information about SixXS check http://www.sixxs.net
Matt Domsch b937ff4
Matt Domsch b937ff4
%prep
Matt Domsch b937ff4
%setup -q -n %{name}
Matt Domsch ea8e4c7
%patch0 -p1
Jochen Schmitt 2c5f12e
%patch1 -p1 -b .run
Conrad Meyer dae47ea
%patch2 -p1 -b .syslog-daemon
Pavel Šimerda dbd7ced
%patch3 -p1
37a443f
%patch4 -p1
Matt Domsch 31a2b97
Matt Domsch b937ff4
# fix executable permissions on non-executable content
Matt Domsch b937ff4
# so debuginfo can pick them up properly
Matt Domsch b937ff4
find . -type f -not -name rules -and -not -name *init* -exec chmod a-x \{\} \;
Matt Domsch b937ff4
Matt Domsch b937ff4
%build
Pavel Šimerda dbd7ced
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
Matt Domsch b937ff4
Matt Domsch b937ff4
%install
Matt Domsch b937ff4
rm -rf $RPM_BUILD_ROOT
Matt Domsch b937ff4
mkdir -p $RPM_BUILD_ROOT
Matt Domsch b937ff4
make install DESTDIR=$RPM_BUILD_ROOT
Matt Domsch b937ff4
Jochen Schmitt 2c5f12e
# remove old-style init script
Jochen Schmitt 2c5f12e
rm $RPM_BUILD_ROOT%{_sysconfdir}/init.d/*
Jochen Schmitt 2c5f12e
Jochen Schmitt 2c5f12e
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
Jochen Schmitt 2c5f12e
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/
Jochen Schmitt 2c5f12e
Matt Domsch b937ff4
%post
32cbb6f
%systemd_post aiccu.service
Matt Domsch b937ff4
Matt Domsch b937ff4
%preun
32cbb6f
%systemd_preun aiccu.service
Matt Domsch b937ff4
Matt Domsch b937ff4
%postun
32cbb6f
%systemd_postun_with_restart aiccu.service 
Matt Domsch b937ff4
Matt Domsch b937ff4
%clean
Matt Domsch b937ff4
make clean
Matt Domsch b937ff4
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
Matt Domsch b937ff4
Matt Domsch b937ff4
%files
Matt Domsch b937ff4
%doc doc/README doc/LICENSE
Matt Domsch b937ff4
%{_sbindir}/aiccu
Matt Domsch b937ff4
# aiccu.conf contains the users's SixXS password, so don't
Matt Domsch b937ff4
# make it readable by non-root
Matt Domsch b937ff4
%attr(600, root,root) %config(noreplace) %{_sysconfdir}/aiccu.conf
Jochen Schmitt 2c5f12e
%{_unitdir}/aiccu.service
Matt Domsch b937ff4
Matt Domsch b937ff4
%changelog
8fcb3a0
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2007.01.15-31
8fcb3a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8fcb3a0
446016a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2007.01.15-30
446016a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
446016a
f7f154d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2007.01.15-29
f7f154d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f7f154d
77e3852
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2007.01.15-28
77e3852
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
77e3852
d306eac
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2007.01.15-27
d306eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d306eac
37a443f
* Wed Jun 22 2016 Pavel Šimerda <psimerda@redhat.com> - 2007.01.15-26
d47d3fb
- Resolves: #668767 - aiccu not running setupscript
37a443f
Pavel Šimerda ddc5b6e
* Fri Aug 28 2015 Pavel Šimerda <psimerda@redhat.com> - 2007.01.15-25
Pavel Šimerda ddc5b6e
- Resolves: #1179274 - Utilize system-wide crypto-policies
Pavel Šimerda ddc5b6e
Pavel Šimerda dbd7ced
* Thu Aug 27 2015 Pavel Šimerda <psimerda@redhat.com> - 2007.01.15-24
Pavel Šimerda dbd7ced
- Resolves: #1239365 - aiccu: FTBFS in rawhide
Pavel Šimerda dbd7ced
0e74343
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-23
0e74343
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e74343
Pavel Šimerda 8968fe1
* Mon Sep 08 2014 Pavel Šimerda <psimerda@redhat.com> - 2007.01.15-22
Pavel Šimerda 8968fe1
- Related: #844607 - order also after time-sync.target
Pavel Šimerda 8968fe1
70ed25e
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-21
70ed25e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
70ed25e
6fb30d4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-20
6fb30d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6fb30d4
Pavel Šimerda 770bd4a
* Fri May 02 2014 Pavel Šimerda <psimerda@redhat.com> - 2007.01.15-19
Pavel Šimerda 770bd4a
- provide proper network/network-online dependencies
Pavel Šimerda 770bd4a
32cbb6f
* Mon Jan 06 2014 Pavel Šimerda <psimerda@redhat.com> - 2007.01.15-18
32cbb6f
- #850022 - use systemd-rpm macros
32cbb6f
c4812ad
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-17
c4812ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c4812ad
212c723
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-16
212c723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
212c723
02512e4
* Mon Aug 6 2012 Conrad Meyer <konrad@tylerc.org> - 2007.01.15-15
02512e4
- Nix systemd restart as per discussion on #844607
02512e4
77bff40
* Tue Jul 31 2012 Conrad Meyer <konrad@tylerc.org> - 2007.01.15-14
77bff40
- Adopt Eric Hopper's proposed changes (#844607)
77bff40
e99320f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-13
e99320f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e99320f
33cdeb6
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-12
33cdeb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
33cdeb6
Conrad Meyer 11f05c9
* Thu Oct 27 2011 Conrad Meyer <konrad@tylerc.org> - 2007.01.15-11
Conrad Meyer 11f05c9
- Patch to syslog as DAEMON, not LOCAL7.
Conrad Meyer 11f05c9
Jochen Schmitt dfcc0a2
* Mon Jul 18 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2007.01.15-10
Jochen Schmitt dfcc0a2
- Change service file to get not complains when /etc/sysconfig/aiccu is missing
Jochen Schmitt dfcc0a2
- Change PID file in aiccu.conf to /run/aiccu.pid
Jochen Schmitt dfcc0a2
Jochen Schmitt 2c5f12e
* Wed Jul  6 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2007.01.15-9
Jochen Schmitt e70b2b8
- Implementing native systemd support (656886)
Jochen Schmitt 2c5f12e
3f86cb2
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-8
3f86cb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3f86cb2
443f3b7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-7
443f3b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
443f3b7
643b776
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2007.01.15-6
643b776
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
643b776
Matt Domsch 31a2b97
* Fri Oct 17 2008 Matt Domsch <mdomsch@fedoraproject.org> - 2007.01.15-5
Matt Domsch 31a2b97
- close file descriptors on exec (BZ#467381)
Matt Domsch 31a2b97
25347d9
* Tue Jun 24 2008 Tomas Mraz <tmraz@redhat.com> 2007.01.15-4 
25347d9
- rebuild with new gnutls
25347d9
Matt Domsch ea8e4c7
* Fri Sep 21 2007 Matt Domsch <matt@domsch.com> 2007.01.15-3
Matt Domsch ea8e4c7
- add LSB initscript header (BZ#246861)
Matt Domsch ea8e4c7
Matt Domsch 1822f98
* Wed Sep 19 2007 Matt Domsch <matt@domsch.com> 2007.01.15-2
Matt Domsch 1822f98
- rebuild
Matt Domsch 1822f98
Matt Domsch 47ff8dc
* Wed Jan 31 2007 Matt Domsch <matt@domsch.com> 2007.01.15-1
Matt Domsch 47ff8dc
- upgrade to latest upstream
Matt Domsch 47ff8dc
Matt Domsch 0703458
* Sat Jan 13 2007 Matt Domsch <matt@domsch.com> 2007.01.07-2
Matt Domsch 0703458
- upstream respun their release with the same version number to fix AYIYA.
Matt Domsch 0703458
Matt Domsch 5c3cfb1
* Sun Jan 07 2007 Matt Domsch <matt@domsch.com> 2007.01.07-1
Matt Domsch 5c3cfb1
- upgrade to latest upstream 2007.01.07
Matt Domsch 5c3cfb1
  - license change to BSD 3-clause
Matt Domsch 5c3cfb1
  - Fixed up silly linux bug, adding LL address to tunnels but not to tun/taps.
Matt Domsch 5c3cfb1
  - local_ipv4_override option so one can use AICCU behind a NAT that
Matt Domsch 5c3cfb1
    has been configured correctly to do proto-41 forwarding. This is
Matt Domsch 5c3cfb1
    usually called a DMZ setup.
Matt Domsch 5c3cfb1
Matt Domsch b692680
* Mon Oct 02 2006 Matt Domsch <matt@domsch.com> 2006.07.25-2
Matt Domsch b692680
- rebuilt
Matt Domsch b692680
Matt Domsch 684567d
* Sat Sep 23 2006 Matt Domsch <matt@domsch.com> 2006.07.25-1
Matt Domsch 684567d
- upgrade to latest upstream, drop all applied patches
Matt Domsch 684567d
- add BR gnutls-devel now used for obtaining tunnel info
Matt Domsch 684567d
Matt Domsch 44c0c40
* Sat Sep  2 2006 Matt Domsch <matt@domsch.com> 2005.01.31-5
Matt Domsch 44c0c40
- rebuild
Matt Domsch 44c0c40
Matt Domsch b937ff4
* Wed Jun 28 2006 Matt Domsch <matt@domsch.com> 2005.01.31-4
Matt Domsch b937ff4
- export CFLAGS properly, fix permissions on files for debuginfo
Matt Domsch b937ff4
Matt Domsch b937ff4
* Wed Jun 28 2006 Matt Domsch <matt@domsch.com> 2005.01.31-3
Matt Domsch b937ff4
- cleanups per Fedora Extras review
Matt Domsch b937ff4
Matt Domsch b937ff4
* Sat Apr 22 2006 Matt Domsch <matt@domsch.com> 2005.01.31-2
Matt Domsch b937ff4
- match Fedora Extras spec guidelines
Matt Domsch b937ff4
- add postun condrestart
Matt Domsch b937ff4
- add reload initscript arg to satisfy rpmlint
Matt Domsch b937ff4
Matt Domsch b937ff4
* Sun Aug 29 2004 Jeroen Massar <jeroen@sixxs.net> 2004.08.29
Matt Domsch b937ff4
- Beta2 with TIC, 6in4, 6in4-heartbeat and AYIYA support
Matt Domsch b937ff4