mirror of https://github.com/toreanderson/clatd
Merge fb5460cf69 into 18dca086c2
This commit is contained in:
commit
ae9818e70b
|
|
@ -0,0 +1,26 @@
|
|||
# Build the clatd RPM package from the GIT packaging/rpm directory.
|
||||
#
|
||||
# This package should be able to be built from the GIT repo by typing
|
||||
# make in the packaging/rpm directory.
|
||||
#
|
||||
# If this doesn't happen then that is a bug that needs to be reported.
|
||||
# There may be better ways, of so, please educate me.
|
||||
|
||||
SPECFILE=clatd.el6.spec
|
||||
NAME := $(shell grep '^Name: ' < $(SPECFILE) | sed -e 's;^Name: ;;')
|
||||
VERSION := $(shell grep '^Version: ' < $(SPECFILE) | sed -e 's;^Version: ;;')
|
||||
FILENAME=${NAME}-${VERSION}
|
||||
TARNAME=${FILENAME}.tar.gz
|
||||
|
||||
TOPDIR=$(shell cd ../..; echo `pwd`)
|
||||
DESTDIR=`pwd`
|
||||
|
||||
all :
|
||||
cd ../../..; \
|
||||
rm -rf ${FILENAME}; \
|
||||
cp -r ${TOPDIR} ${FILENAME}; \
|
||||
tar cfz ${TARNAME} ${FILENAME} --exclude=.git; \
|
||||
rm -rf ${FILENAME}
|
||||
mv ../../../${TARNAME} .
|
||||
rpmbuild -ta ${TARNAME}
|
||||
rm -rf ${TARNAME}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
Summary: Implements IPv4 access in an IPv6-only environment.
|
||||
Name: clatd
|
||||
Version: 1.4
|
||||
Release: 1
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
License: Copyright (c) 2014 Tore Anderson <tore@fud.no>
|
||||
Group: Utilities/System
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
||||
BuildArch: noarch
|
||||
Packager: David Summers <david@summersoft.fay-ar.us>
|
||||
Url: https://github.com/toreanderson/clatd
|
||||
Requires: perl
|
||||
Requires: perl-IO-Socket-INET6
|
||||
Requires: perl-Net-DNS
|
||||
Requires: perl-Net-IP
|
||||
Requires: tayga
|
||||
|
||||
%description
|
||||
Implements IPv4 access in an IPv6-only environment as the CLAT component of
|
||||
the 464XLAT network architecture specified in RFC 6877.
|
||||
|
||||
It connects to an upstream PLAT (which is a typically a Stateful NAT64).
|
||||
|
||||
%changelog
|
||||
* Thu Dec 17 2015 David Summers <david@summersoft.fay-ar.us> 1.4-1
|
||||
- Updated to 1.4.
|
||||
|
||||
* Wed Apr 08 2015 David Summers <david@summersoft.fay.ar.us> 1.0-1
|
||||
- First packaged version
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# Copy clatd perl script.
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
|
||||
cp clatd $RPM_BUILD_ROOT/usr/sbin
|
||||
|
||||
# Copy init script for upstart.
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/init
|
||||
cp scripts/clatd.upstart $RPM_BUILD_ROOT/etc/init/clatd.conf
|
||||
|
||||
# Copy NetworkManager script.
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d
|
||||
cp scripts/clatd.networkmanager $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/50-clatd
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.pod LICENCE
|
||||
%attr(0755,-,-) /etc/NetworkManager/dispatcher.d/50-clatd
|
||||
/etc/init/*
|
||||
/usr/sbin/*
|
||||
Loading…
Reference in New Issue