Added install target for Makefile.in ; added contrib/fedora, contrib/systemd
authorRick van Rein <rick@openfortress.nl>
Sat, 30 Dec 2017 22:56:43 +0000 (22:56 +0000)
committerRick van Rein <rick@openfortress.nl>
Sat, 30 Dec 2017 23:41:09 +0000 (23:41 +0000)
Makefile.in
contrib/fedora/6bed4.spec [new file with mode: 0644]
contrib/systemd/6bed4.service [new file with mode: 0644]
contrib/systemd/6bed4peer.service [new file with mode: 0644]
fedora/6bed4.spec [deleted file]

index 23988e3..d797078 100644 (file)
@@ -9,6 +9,10 @@ all: 6bed4router 6bed4peer
 tags: 6bed4router.c 6bed4peer.c
        ctags 6bed4router.c 6bed4peer.c nonstd.h
 
+install: all
+       install 6bed4peer /usr/local/sbin
+       install 6bed4router /usr/local/sbin
+
 clean:
        rm -f 6bed4router 6bed4peer tags
 
diff --git a/contrib/fedora/6bed4.spec b/contrib/fedora/6bed4.spec
new file mode 100644 (file)
index 0000000..dcb555d
--- /dev/null
@@ -0,0 +1,60 @@
+Name:          6bed4
+Version:       0.0.1
+Release:       0.1%{?dist}
+Summary:       IPv6 tunneling technique over UDP and IPv4
+
+Group:         Applications/Internet
+License:       BSD
+URL:           http://devel.0cpm.org/6bed4/
+Source0:       6bed4-%{version}.tar.bz2
+BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: cmake
+
+%description
+Given the limited resources available to a lot of embedded systems,
+dual-stack solutions are not always feasible for such hosts.  A
+mechanism that supports a direct transition from IPv4-only to
+IPv6-only may prove beneficial in getting the smallest hosts to make
+a transition to IPv6 at a much earlier stage than would otherwise be
+possible.  This calls for tunnels, but no current tunnel technique
+appears to be optimal for embedded systems.
+
+This specification details an IPv6 tunneling technique over UDP and
+IPv4.  The technique is specifically designed to benefit embedded
+systems, and to work without end user configuration.  The working
+principle for obtaining a routable IPv6 address is through stateless
+autoconfiguration from an anycast tunnel service.
+
+%prep
+%setup -q
+
+
+%build
+%cmake .
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc HISTORY LICENSE doc
+%{_sbindir}/6bed4peer
+%{_sbindir}/6bed4router
+%{_mandir}/man8/*
+
+%changelog
+* Thu mar  8 2012 Rick van Rein
+- rearranged command and man file names
+
+* Sat Oct 22 2011 François Kooman - 0.0.1-0.1
+- initial version
+
+
diff --git a/contrib/systemd/6bed4.service b/contrib/systemd/6bed4.service
new file mode 100644 (file)
index 0000000..f0f8faf
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=IPv6 anywhere
+Documentation=http://0cpm.org/6bed4/
+
+[Install]
+Alias=tun6bed4
+WantedBy=network.target
+
+[Service]
+Type=simple
+RemainAfterExit=no
+ExecStart=/usr/local/sbin/6bed4peer -ref
+Restart=always
+RestartSec=60
diff --git a/contrib/systemd/6bed4peer.service b/contrib/systemd/6bed4peer.service
new file mode 100644 (file)
index 0000000..09e44d1
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=IPv6 anywhere
+Documentation=http://0cpm.org/6bed4/
+
+[Install]
+WantedBy=network.target
+
+[Service]
+Type=simple
+RemainAfterExit=no
+ExecStart=/usr/local/sbin/6bed4peer -ref
+Restart=always
+RestartSec=60
diff --git a/fedora/6bed4.spec b/fedora/6bed4.spec
deleted file mode 100644 (file)
index dcb555d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-Name:          6bed4
-Version:       0.0.1
-Release:       0.1%{?dist}
-Summary:       IPv6 tunneling technique over UDP and IPv4
-
-Group:         Applications/Internet
-License:       BSD
-URL:           http://devel.0cpm.org/6bed4/
-Source0:       6bed4-%{version}.tar.bz2
-BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-
-BuildRequires: cmake
-
-%description
-Given the limited resources available to a lot of embedded systems,
-dual-stack solutions are not always feasible for such hosts.  A
-mechanism that supports a direct transition from IPv4-only to
-IPv6-only may prove beneficial in getting the smallest hosts to make
-a transition to IPv6 at a much earlier stage than would otherwise be
-possible.  This calls for tunnels, but no current tunnel technique
-appears to be optimal for embedded systems.
-
-This specification details an IPv6 tunneling technique over UDP and
-IPv4.  The technique is specifically designed to benefit embedded
-systems, and to work without end user configuration.  The working
-principle for obtaining a routable IPv6 address is through stateless
-autoconfiguration from an anycast tunnel service.
-
-%prep
-%setup -q
-
-
-%build
-%cmake .
-make %{?_smp_mflags}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
-%files
-%defattr(-,root,root,-)
-%doc HISTORY LICENSE doc
-%{_sbindir}/6bed4peer
-%{_sbindir}/6bed4router
-%{_mandir}/man8/*
-
-%changelog
-* Thu mar  8 2012 Rick van Rein
-- rearranged command and man file names
-
-* Sat Oct 22 2011 François Kooman - 0.0.1-0.1
-- initial version
-
-