Author: pzurowski                    Date: Mon Oct  3 20:51:54 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init, based on template

---- Files affected:
SPECS:
   hamachi.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/hamachi.spec
diff -u /dev/null SPECS/hamachi.spec:1.1
--- /dev/null   Mon Oct  3 22:51:54 2005
+++ SPECS/hamachi.spec  Mon Oct  3 22:51:49 2005
@@ -0,0 +1,87 @@
+# $Revision$, $Date$
+#
+# TODO:
+#   initscripts ?
+#
+%define                ver 0.9.9.9
+%define                subver 3
+
+%define                _noautostrip    .*hamachi
+
+Summary:       hamachi
+#Summary(pl):  -
+Name:          hamachi
+Version:       %{ver}_%{subver}
+Release:       0.1
+Epoch:         0
+License:       free, not-distributable
+Group:         Networking
+Source0:       http://files.hamachi.cc/linux/%{name}-%{ver}-%{subver}.tar.gz
+# NoSource0-md5:       d33566156304f0635659be7d1c48b41a
+NoSource:      0
+URL:           http://www.hamachi.cc
+BuildRequires: sed >= 4
+ExclusiveArch: %{ix86}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+With Hamachi you can organize two or more computers with an Internet
+connection into their own virtual network for direct secure
+communication. See README for futher information.
+
+#description -l pl
+
+%prep
+%setup -q -n %{name}-%{ver}-%{subver}
+
+%build
+sed -i 's, [^/ ]*/hamachi , hamachi ,' Makefile
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},/sbin}
+
+%{__make} install \
+       HAMACHI_DST=$RPM_BUILD_ROOT%{_bindir} \
+       TUNCFG_DST=$RPM_BUILD_ROOT/sbin
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with initscript}
+%post init
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun init
+if [ "$1" = "0" ]; then
+       %service -q %{name} stop
+       /sbin/chkconfig --del %{name}
+fi
+%endif
+
+%files
+%defattr(644,root,root,755)
+%doc README LICENSE*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) /sbin/*
+
+
+# initscript and its config
+%if %{with initscript}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%endif
+
+#%{_examplesdir}/%{name}-%{version}
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/10/03 20:51:49  pzurowski
+- init, based on template
+
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to