mirror of
https://github.com/toreanderson/clatd
synced 2026-09-21 22:21:16 +00:00
First shot at adding packaging to clatd GIT repo.
The RPM should be able to be built by going into the packaging/rpm directory and typing "make".
This commit is contained in:
26
packaging/rpm/Makefile
Normal file
26
packaging/rpm/Makefile
Normal file
@@ -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}
|
||||||
54
packaging/rpm/clatd.el6.spec
Normal file
54
packaging/rpm/clatd.el6.spec
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.pod LICENCE
|
||||||
|
/etc/init/*
|
||||||
|
/usr/sbin/*
|
||||||
Reference in New Issue
Block a user