X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=redhat%2Ftinc.spec;fp=redhat%2Ftinc.spec;h=b0a4d4ea8fc69c05019defb15f8125c6614a1730;hp=0000000000000000000000000000000000000000;hb=d11cfcec74e25ee2b88acea62ca5ef973ab7204b;hpb=93287d2b2c77d4b9e3f85f36ef4f9230fe3bf9b3 diff --git a/redhat/tinc.spec b/redhat/tinc.spec new file mode 100644 index 00000000..b0a4d4ea --- /dev/null +++ b/redhat/tinc.spec @@ -0,0 +1,92 @@ +Summary: tinc vpn daemon +Name: tinc +Version: cvs_2000_04_17 +Release: mk1 +Copyright: GPL +Group: Networking +URL: http://tinc.nl.linux.org/ +Source0: cabal.tgz +Source1: tinc +Buildroot: /var/tmp/%{name}-%{version} +#Requires: + +%description +tinc is cool! +See http://tinc.nl.linux.org/ + +%prep + +%setup -q -n cabal + +%build +autoconf +automake +./configure --prefix=/usr --sysconfdir=/etc +make + +%install +ME=my.vpn.ip.number +PEER=peer.vpn.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 +cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf +#sample +TapDevice = /dev/tap0 +ConnectTo = $PEEREAL +MyVirtualIP = $ME/32 +AllowConnect = no +END +cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/local +128 0c647a1fd34da9d04c1d340ae9363f31 +END +cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/$PEER +128 aea5a5d414fea63ee3829b592afc0fba +END + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre +%post + +/sbin/chkconfig --add tinc + +grep -q '^tinc[[:space:]]' /etc/services || patch -s /etc/services << END +*** services.org Tue Apr 18 13:22:22 2000 +--- services Tue Apr 18 13:24:19 2000 +*************** +*** 145,148 **** +--- 145,150 ---- + hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS + hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS ++ tinc 655/tcp TINC # tinc vpn ++ tinc 655/udp TINC # tinc.nl.linux.org + # + # UNIX specific services +END + +%preun +%postun + +%files + +%doc AUTHORS ChangeLog NEWS README THANKS TODO + +#%defattr(-,root,root) +%config /etc/tinc +/etc/rc.d +/usr/sbin +/usr/lib/tinc +/usr/man +/usr/info + +%changelog +* Tue Apr 18 2000 Mads Kiileric +- initial rpm