Commit 9a779d7bd5896f96536715243e08cade6d574700
1 parent
82c2f63f
Exists in
master
and in
79 other branches
noosfero: install plugins correctly
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
specs/noosfero/noosfero.spec
1 | 1 | %define writable_dirs javascripts/cache stylesheets/cache articles image_uploads thumbnails |
2 | 2 | |
3 | 3 | Name: noosfero |
4 | -Version: 1.1~rc2.1 | |
4 | +Version: 1.1~rc2.2 | |
5 | 5 | Release: 1%{?dist} |
6 | 6 | Summary: Social Networking Platform |
7 | 7 | Group: Applications/Publishing |
... | ... | @@ -39,6 +39,8 @@ cp -r * %{buildroot}/usr/lib/noosfero/ |
39 | 39 | rm %{buildroot}/usr/lib/noosfero/{COPY*,Vagrantfile,*.md,gitignore.example,public/dispatch.fcgi,public/dispatch.cgi,public/dispatch.rb} |
40 | 40 | # no point in installing debian/ as part of the RPM |
41 | 41 | rm -rf %{buildroot}/usr/lib/noosfero/debian |
42 | +# installed plugins should be in /etc | |
43 | +rm -rf %{buildroot}/usr/lib/noosfero/config/plugins | |
42 | 44 | |
43 | 45 | # install config files |
44 | 46 | mkdir -p %{buildroot}/etc/init.d |
... | ... | @@ -47,7 +49,10 @@ cp etc/init.d/noosfero %{buildroot}/etc/init.d/ |
47 | 49 | mkdir -p %{buildroot}/etc/noosfero/plugins |
48 | 50 | ln -sf /etc/noosfero/database.yml %{buildroot}/usr/lib/noosfero/config/database.yml |
49 | 51 | ln -sf /etc/noosfero/thin.yml %{buildroot}/usr/lib/noosfero/config/thin.yml |
50 | -ln -sf /etc/noosfero/plugins %{buildroot}/usr/lib/noosfero/config/plugins | |
52 | + | |
53 | +mkdir -p %{buildroot}/etc/noosfero/plugins | |
54 | +cp config/plugins/README %{buildroot}/etc/noosfero/plugins | |
55 | +ln -sfT /etc/noosfero/plugins %{buildroot}/usr/lib/noosfero/config/plugins | |
51 | 56 | |
52 | 57 | # symlink needed bits in public/ |
53 | 58 | for dir in %{writable_dirs}; do |
... | ... | @@ -131,6 +136,7 @@ chkconfig --del noosfero |
131 | 136 | %files |
132 | 137 | /usr/lib/noosfero |
133 | 138 | /etc/init.d/noosfero |
139 | +/etc/noosfero/plugins/README | |
134 | 140 | %config(noreplace) /etc/default/noosfero |
135 | 141 | %config(noreplace) /etc/noosfero/database.yml |
136 | 142 | %config(noreplace) /etc/noosfero/thin.yml | ... | ... |