packages: unxsadmin/unxsadmin-DESTDIR.patch (NEW), unxsadmin/unxsadmin.spec...
paszczus
paszczus at pld-linux.org
Fri Jun 12 14:51:25 CEST 2009
Author: paszczus Date: Fri Jun 12 12:51:25 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/unxsadmin:
unxsadmin-DESTDIR.patch (NONE -> 1.1) (NEW), unxsadmin.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/unxsadmin/unxsadmin-DESTDIR.patch
diff -u /dev/null packages/unxsadmin/unxsadmin-DESTDIR.patch:1.1
--- /dev/null Fri Jun 12 14:51:25 2009
+++ packages/unxsadmin/unxsadmin-DESTDIR.patch Fri Jun 12 14:51:20 2009
@@ -0,0 +1,11 @@
+diff -ur unxsadmin-1.4/makefile unxsadmin-1.4.new/makefile
+--- unxsadmin-1.4/makefile 2009-05-14 17:06:22.000000000 +0200
++++ unxsadmin-1.4.new/makefile 2009-06-12 14:43:26.319577195 +0200
+@@ -13,5 +13,5 @@
+ rm -f *.o lastmonth
+
+ install: lastmonth
+- install -s lastmonth /usr/bin/lastmonth
++ install -s lastmonth $(DESTDIR)/usr/bin/lastmonth
+ rm lastmonth
+Tylko w unxsadmin-1.4.new/: makefile~
================================================================
Index: packages/unxsadmin/unxsadmin.spec
diff -u /dev/null packages/unxsadmin/unxsadmin.spec:1.1
--- /dev/null Fri Jun 12 14:51:25 2009
+++ packages/unxsadmin/unxsadmin.spec Fri Jun 12 14:51:20 2009
@@ -0,0 +1,84 @@
+# $Revision$, $Date$
+Summary: unxsadmin provides the http shared content and httpd conf.d file for all unxsVZ web admins
+Name: unxsadmin
+Version: 1.4
+Release: 0.1
+License: GPL
+Group: Networking/Admin
+Source0: http://unixservice.com/source/%{name}-%{version}.tar.gz
+# Source0-md5: fdffbedd992dbac31c8b6a3a6932ee4d
+URL: http://openisp.net/openisp/unxsAdmin
+BuildRequires: rpmbuild(macros) >= 1.268
+Patch0: %{name}-DESTDIR.patch
+Requires: httpd
+Requires: mod_ssl
+Requires: rrdtool
+
+%description
+unxsadmin provides the http shared content and conf for all unxsVZ web
+admins. It provides the dir layout in /var/www/unxs and all the shared
+css, js and image content needed by unxsVZ family of web
+administration interfaces like unxsMail, unxsApache, unxsVZ, unxsBind
+and unxsISP. It also provides some common binary utilities like
+lastmonth.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
+install -d $RPM_BUILD_ROOT%{_datadir}/unxs/{cgi-bin,logs,html/{images,js,css}}
+
+cp -a images/*.gif $RPM_BUILD_ROOT%{_datadir}/unxs/html/images/
+cp -a js/*.js $RPM_BUILD_ROOT%{_datadir}/unxs/html/js
+cp -a css/*.css $RPM_BUILD_ROOT%{_datadir}/unxs/html/css
+cp unxs.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/99_unxs.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q httpd restart
+
+%postun
+if [ "$1" = "0" ]; then
+ %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%dir %{_datadir}/unxs
+%dir %{_datadir}/unxs/cgi-bin
+%dir %{_datadir}/unxs/logs
+%dir %{_datadir}/unxs/html
+%dir %{_datadir}/unxs/html/css
+%{_datadir}/unxs/html/css/*.css
+%dir %{_datadir}/unxs/html/images
+%{_datadir}/unxs/html/images/*.gif
+%dir %{_datadir}/unxs/html/js
+%{_datadir}/unxs/html/js/*.js
+%{_sysconfdir}/httpd/conf.d/99_unxs.conf
+%attr(755,root,root) %{_bindir}/lastmonth
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/06/12 12:51:20 paszczus
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list