SPECS: hamachi.spec - define _sbindir - remove template remains
glen
glen at pld-linux.org
Sun Apr 16 23:47:01 CEST 2006
Author: glen Date: Sun Apr 16 21:47:01 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- define _sbindir
- remove template remains
---- Files affected:
SPECS:
hamachi.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/hamachi.spec
diff -u SPECS/hamachi.spec:1.6 SPECS/hamachi.spec:1.7
--- SPECS/hamachi.spec:1.6 Tue Apr 11 00:30:49 2006
+++ SPECS/hamachi.spec Sun Apr 16 23:46:56 2006
@@ -1,13 +1,9 @@
# $Revision$, $Date$
-#
# TODO:
-# initscripts ?
+# - initscripts ?
#
%define ver 0.9.9.9
%define subver 17
-
-%define _noautostrip .*hamachi
-
Summary: hamachi - simple VPN
Summary(pl): hamachi - prosty VPN
Name: hamachi
@@ -24,6 +20,9 @@
ExclusiveArch: %{ix86}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sbindir /sbin
+%define _noautostrip .*hamachi
+
%description
With Hamachi you can organize two or more computers with an Internet
connection into their own virtual network for direct secure
@@ -38,43 +37,24 @@
%prep
%setup -q -n %{name}-%{ver}-%{subver}-lnx
-%build
sed -i 's, [^/ ]*/hamachi , hamachi ,' Makefile
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},/sbin}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}
%{__make} install \
HAMACHI_DST=$RPM_BUILD_ROOT%{_bindir} \
- TUNCFG_DST=$RPM_BUILD_ROOT/sbin
+ TUNCFG_DST=$RPM_BUILD_ROOT%{_sbindir}
%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
+%attr(755,root,root) %{_sbindir}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -82,6 +62,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2006/04/16 21:46:56 glen
+- define _sbindir
+- remove template remains
+
Revision 1.6 2006/04/10 22:30:49 czarny
- up to 0.9.9.9-17
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/hamachi.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list