Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
nfsen_prepare_build
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
nfsen_prepare_build.spec
@@ -1,3 +1,8 @@ +%if 0%{?suse_version} +%define _group www +%else +%define _group apache +%endif Name: nfsen_prepare_build Summary: prepare build environment Version: 0.1 @@ -21,6 +26,12 @@ BuildRequires: shadow-utils Requires: shadow-utils %endif +%if 0%{?suse_version} +BuildRequires: apache2-mod_php5 +BuildRequires: php-sockets +%else +BuildRequires: httpd php +%endif %description this package prepares build environment for nfsen package @@ -32,7 +43,7 @@ %post if [ -z "`%__grep "^netflow" /etc/passwd 2>/dev/null`" ]; then - %{_sbindir}/useradd -c "netflow" -d %{_datadir}/nfsen -g www -r -s /bin/false netflow + %{_sbindir}/useradd -c "netflow" -d %{_datadir}/nfsen -g %{_group} -r -s /bin/false netflow fi %files