/[smecontribs]/rpms/smeserver-wordpress/contribs7/smeserver-wordpress.spec
ViewVC logotype

Annotation of /rpms/smeserver-wordpress/contribs7/smeserver-wordpress.spec

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


Revision 1.1 - (hide annotations) (download)
Sun Dec 23 21:42:41 2007 UTC (16 years, 10 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-wordpress-1.0-1.el4.sme.src.rpm

1 slords 1.1 %define name smeserver-wordpress
2     %define version 1.0
3     %define release 1
4     Summary: smserver rpm to setup mysql database and web link for wordpress weblog
5     Name: %{name}
6     Version: %{version}
7     Release: %{release}%{?dist}
8     Distribution: SME Server
9     License: GNU GPL version 2
10     URL: http://www.dungog.net/sme
11     Group: SMEserver/addon
12     Source: %{name}-%{version}.tar.gz
13     Packager: Stephen Noble <support@dungog.net>
14     BuildArchitectures: noarch
15     BuildRoot: /var/tmp/%{name}-%{version}
16     BuildRequires: e-smith-devtools >= 1.13.1-03
17     Requires: e-smith-release >= 7.0
18     Requires: wordpress
19     AutoReqProv: no
20    
21     %description
22     smserver rpm to setup mysql database and web link for wordpress weblog
23    
24     %changelog
25     * Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1
26     - http alias, auto setup, template wp-config.php
27    
28     * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
29     - rpm %post events reordered, to enable clean install
30     - [0.9-5]
31    
32     * Thu Nov 9 2006 Stephen Noble <support@dungog.net>
33     - http alias corrected
34     - [0.9-4]
35    
36     * Thu Nov 9 2006 Stephen Noble <support@dungog.net>
37     - http PublicAccess setting added
38     - [0.9-3]
39    
40     * Thu May 4 2006 Stephen Noble <support@dungog.net>
41     - httpd fragment modified
42     - rpm doesn't change file permissions
43     - [0.9-2]
44    
45     * Sun Apr 16 2006 Stephen Noble <support@dungog.net>
46     - initial release
47     - [0.9-1]
48    
49     %prep
50     %setup
51    
52     %build
53     mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress
54     echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type
55    
56     mkdir -p root/etc/e-smith/db/configuration/defaults/wordpress
57     echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name
58     echo "global" > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
59     echo "enabled" > root/etc/e-smith/db/configuration/defaults/wordpress/status
60     echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbName
61     echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
62     echo "en" > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
63    
64     mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
65     echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
66    
67     #only needed so it is removed afterwards
68     mkdir -p root/opt/wordpress
69     touch root/opt/wordpress/wp-config.php
70    
71     %install
72     rm -rf $RPM_BUILD_ROOT
73     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
74     rm -f %{name}-%{version}-filelist
75     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
76     > %{name}-%{version}-filelist
77     echo "%doc COPYING" >> %{name}-%{version}-filelist
78    
79     %clean
80     cd ..
81     rm -rf %{name}-%{version}
82    
83     %pre
84     %preun
85    
86     %post
87     /etc/e-smith/events/actions/initialize-default-databases
88     /sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress
89     /etc/rc.d/init.d/mysql.init start
90     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
91     /sbin/e-smith/expand-template /opt/wordpress/wp-config.php
92     /usr/bin/sv h /service/httpd-e-smith
93    
94     echo ""
95     echo "see wiki.contribs.org/wordpress"
96    
97     %postun
98     #uninstall
99     if [ $1 = 0 ] ; then
100     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
101     /usr/bin/sv h /service/httpd-e-smith
102     fi
103    
104     %files -f %{name}-%{version}-filelist
105     %defattr(-,root,root)
106    

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