/[smecontribs]/rpms/smeserver-tf-b4rt/contribs7/smeserver-tf-b4rt-1.0.spec
ViewVC logotype

Annotation of /rpms/smeserver-tf-b4rt/contribs7/smeserver-tf-b4rt-1.0.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Dec 23 21:54:02 2007 UTC (16 years, 6 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-tf-b4rt-1.0-1.src.rpm

1 slords 1.1 Summary: smeserver rpm to setup torrentflux-b4rt torrent client
2     %define name smeserver-tf-b4rt
3     Name: %{name}
4     %define version 1.0
5     %define release 1
6     Version: %{version}
7     Release: %{release}%{?dist}
8     Distribution: SME Server
9     License: GPL
10     URL: http://www.dungog.net/sme
11     Group: SMEserver/addon
12     Source0: %{name}-%{version}.tar.gz
13     BuildArchitectures: noarch
14     BuildRoot: /var/tmp/%{name}-%{version}
15     Requires: e-smith-release >= 7.0
16     Requires: tf-b4rt
17     BuildRequires: e-smith-devtools >= 1.13.1-03
18     AutoReqProv: no
19    
20     %description
21     smserver rpm to setup torrentflux-b4rt torrent client
22    
23     %changelog
24     * Sun Sep 16 2007 Stephen Noble <support@dungog.net> 1.0
25     - initial release
26    
27     %prep
28     %setup
29    
30     %build
31     mkdir -p root/etc/e-smith/db/accounts/defaults/b4rt
32     echo "reserved" > root/etc/e-smith/db/accounts/defaults/b4rt/type
33    
34     mkdir -p root/etc/e-smith/db/configuration/defaults/b4rt
35     echo "service" > root/etc/e-smith/db/configuration/defaults/b4rt/type
36     echo "Torrent client" > root/etc/e-smith/db/configuration/defaults/b4rt/Name
37     echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/b4rt/PublicAccess
38     echo "enabled" > root/etc/e-smith/db/configuration/defaults/b4rt/status
39     echo "b4rt" > root/etc/e-smith/db/configuration/defaults/b4rt/DbName
40     echo "b4rt" > root/etc/e-smith/db/configuration/defaults/b4rt/DbUser
41    
42     mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
43     echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80tf-b4rt
44    
45     %install
46     rm -rf $RPM_BUILD_ROOT
47     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
48     rm -f %{name}-%{version}-filelist
49     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
50     echo "%doc COPYING" >> %{name}-%{version}-filelist
51    
52     %clean
53     cd ..
54     rm -rf %{name}-%{version}
55    
56     %pre
57    
58     %preun
59    
60     %post
61     /etc/e-smith/events/actions/initialize-default-databases
62     /sbin/e-smith/expand-template /etc/e-smith/sql/init/80tf-b4rt
63     /etc/rc.d/init.d/mysql.init start
64     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
65     /sbin/e-smith/expand-template /opt/b4rt/html/inc/config/config.db.php
66     /usr/local/bin/svc -h /service/httpd-e-smith
67    
68     echo ""
69     echo "see http://wiki.contribs.org/torrentflux"
70    
71     %postun
72     #uninstall
73     if [ $1 = 0 ] ; then
74     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
75     /usr/local/bin/svc -h /service/httpd-e-smith
76     fi
77    
78     %files -f %{name}-%{version}-filelist
79     %defattr(-,root,root)
80    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed