Submitted changes by Mads Kiilerich.
This commit is contained in:
parent
375b668dbc
commit
2c5a555d7a
1 changed files with 12 additions and 14 deletions
|
@ -1,13 +1,12 @@
|
||||||
Summary: tinc vpn daemon
|
Summary: tinc vpn daemon
|
||||||
Name: tinc
|
Name: tinc
|
||||||
Version: cvs_2000_04_17
|
Version: 1.0
|
||||||
Release: mk1
|
Release: pre1
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Group: Networking
|
Group: Networking
|
||||||
URL: http://tinc.nl.linux.org/
|
URL: http://tinc.nl.linux.org/
|
||||||
Source0: cabal.tgz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source1: tinc
|
Buildroot: /var/tmp/%{name}-%{version}-%{release}
|
||||||
Buildroot: /var/tmp/%{name}-%{version}
|
|
||||||
#Requires:
|
#Requires:
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -16,25 +15,24 @@ See http://tinc.nl.linux.org/
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%setup -q -n cabal
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoconf
|
#autoconf
|
||||||
automake
|
#automake
|
||||||
./configure --prefix=/usr --sysconfdir=/etc
|
./configure --prefix=/usr --sysconfdir=/etc
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
||||||
|
|
||||||
ME=my.vpn.ip.number
|
ME=my.vpn.ip.number
|
||||||
PEER=peer.vpn.ip.number
|
PEER=peer.vpn.ip.number
|
||||||
PEEREAL=peer.real.ip.number
|
PEEREAL=peer.real.ip.number
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
install -D $RPM_SOURCE_DIR/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
|
mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
|
||||||
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf
|
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf
|
||||||
#sample
|
#sample
|
||||||
|
|
Loading…
Reference in a new issue