X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=redhat%2Ftinc.spec;h=376599dfd86efee5ca206d1e963f4723ec77eca5;hp=73b198b46db521261f6bd88c96f744b5d6d8a4ff;hb=9ea27f76fab3663c9c83a7fe7de95f74cbfd59be;hpb=2c5a555d7aefcf5699c68cb5d5f00f604b2542c7;ds=sidebyside diff --git a/redhat/tinc.spec b/redhat/tinc.spec index 73b198b4..376599df 100644 --- a/redhat/tinc.spec +++ b/redhat/tinc.spec @@ -1,16 +1,28 @@ -Summary: tinc vpn daemon +Summary: tinc Virtual Private Network daemon Name: tinc -Version: 1.0 -Release: pre1 +Version: 1.0pre1 +Release: 2 Copyright: GPL -Group: Networking +Group: System Environment/Daemons URL: http://tinc.nl.linux.org/ Source0: %{name}-%{version}.tar.gz Buildroot: /var/tmp/%{name}-%{version}-%{release} -#Requires: +Requires: iproute +# for building the package the following is required: +# /usr/bin/texi2html /usr/bin/patch %description -tinc is cool! +# taken from doc/tinc.texi +tinc is a Virtual Private Network (VPN) daemon that uses tunneling and +encryption to create a secure private network between hosts on the +Internet. + +Because the tunnel appears to the IP level network code as a normal +network device, there is no need to adapt any existing software. + +This tunneling allows VPN sites to share information with each other +over the Internet without exposing any information to others. + See http://tinc.nl.linux.org/ %prep @@ -18,34 +30,40 @@ See http://tinc.nl.linux.org/ %setup -q -n %{name}-%{version} %build -#autoconf -#automake ./configure --prefix=/usr --sysconfdir=/etc make +/usr/bin/texi2html doc/tinc.texi %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +gzip $RPM_BUILD_ROOT/usr/info/tinc.info -install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/ +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/ +cp redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/ ME=my.vpn.ip.number PEER=peer.vpn.ip.number PEEREAL=peer.real.ip.number +umask 077 mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases -cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf -#sample +cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/tinc.conf +# Sample tinc configuration. +# Insert your own ip numbers instead of the placeholders, +# and be sure to use your own passphrases. +# See man tinc.conf(5) tincd(8) genauth(8), info tinc and +# /usr/doc/%{name}-%{version}/tinc.conf.sample TapDevice = /dev/tap0 ConnectTo = $PEEREAL MyVirtualIP = $ME/32 AllowConnect = no END cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/local -128 0c647a1fd34da9d04c1d340ae9363f31 +1024 c1da5b633b428d783fec96ac89bb6bd4ed97ac673942706ba2240cde977158b7cd5f4055b7db70a7365d1f8df6a1a7c9dbb73f4e2bf8484fc14aee68d0f950e2bce82dd2a6386f040546a61e77cd1c25265ce03182e4e2c9a00ae0ea2f1f89ac04a10f7b67312187b5d2d74618803974ba6f053116b1460bc194c652dc28c84a END cat <$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/$PEER -128 aea5a5d414fea63ee3829b592afc0fba +1024 9dff58799827c3ae73699d9d4029cf80ee4cfd3a8408495cdb68c78dec602c46f362aedeea80928384254bc7d0bfbf9756c0783b5ec9943161863530a8861947147d124286e8c46fd98af988c96ba65c63acefc01f6c03b6b8f7d9897acb02c083adb7416ee5ccbc19610a8b9ade2599d8f66e94c715f2e1a15054a78a3f3260 END %clean @@ -70,21 +88,26 @@ grep -q '^tinc[[:space:]]' /etc/services || patch -s /etc/services << END # UNIX specific services END +grep -q '^alias tap0' /etc/conf.modules || cat >> /etc/conf.modules << END +# tinc uses ethertap/netlink +alias tap0 ethertap +alias char-major-36 netlink_dev +END +/sbin/install-info /usr/info/tinc.info.gz /usr/info/dir --entry="* tinc: (tinc). The tinc Manual." + %preun +/sbin/install-info --delete /usr/info/tinc.info.gz /usr/info/dir --entry="* tinc: (tinc). The tinc Manual." + %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 +%doc AUTHORS ChangeLog NEWS README THANKS *.html doc/tincd.conf.sample +%config /etc/tinc/ +/etc/rc.d/init.d/tinc +/usr/sbin/genauth +/usr/sbin/tincd +/usr/lib/tinc/ +/usr/man/man5/tincd.conf.5 +/usr/man/man8/genauth.8 +/usr/man/man8/tincd.8 +/usr/info/tinc.info.gz