source: projects/specs/trunk/w/www-common/www-common-vl.spec @ 6211

Revision 6211, 1.1 KB checked in by daisuke, 12 years ago (diff)

new package

Line 
1Summary: Common filesystem layout for Web servers and applications
2Summary(ja): Webサーバとアプリケーションのための共通ファイルと設定
3Name: www-common
4Version: 0.1
5Release: 1%{?_dist_release}
6License: Public Domain
7Group: System Environment/Base
8
9Buildroot: %{_tmppath}/%{name}-%{version}-root
10BuildArch: noarch
11
12%description
13The package contains common filesystem layout and system settings
14for web servers and applications.
15
16%description -l ja
17このパッケージには、Web サーバや Web アプリケーションに必要な
18共通のファイルとシステム設定が含まれてます。
19
20%prep
21
22%install
23rm -rf %{buildroot}
24mkdir -p %{buildroot}/var/www
25
26%clean
27rm -rf %{buildroot}
28
29%pre
30# add "www-data" group
31/usr/sbin/groupadd -f -g 48 -o -r www-data 2> /dev/null || :
32# add "www-data" user
33/usr/sbin/useradd -c "www data" -u 48 -g 48 -o -M \
34    -s /sbin/nologin -r -d /var/www www-data 2> /dev/null || :
35
36%files
37%defattr(-,root,root)
38%dir %attr(0775,www-data,www-data) /var/www
39
40%changelog
41* Mon May 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1
42- initial build
Note: See TracBrowser for help on using the repository browser.