SPECS: apache-mod-ngobjweb.spec (NEW), libfoundation.spec (NEW), l...

Elan Ruusamäe glen at delfi.ee
Fri Apr 22 10:57:31 CEST 2005


+++ SPECS/apache-mod-ngobjweb.spec      Thu Apr 21 23:42:17 2005

shouldn't the spec called apache-mod_ngobjweb.spec ?

On Friday 22 April 2005 00:42, wolvverine wrote:
> Author: wolvverine                   Date: Thu Apr 21 21:42:42 2005 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - NFY
> -initial spec
>
> ---- Files affected:
> SPECS:
>    apache-mod-ngobjweb.spec (NONE -> 1.1)  (NEW), libfoundation.spec (NONE
> -> 1.1)  (NEW), libical-sope-devel.spec (NONE -> 1.1)  (NEW),
> libobjc-lf2.spec (NONE -> 1.1)  (NEW), opengroupware-environment.spec (NONE
> -> 1.1)  (NEW), opengroupware-pilot-link.spec (NONE -> 1.1)  (NEW),
> opengroupware.spec (NONE -> 1.1)  (NEW)
>
> ---- Diffs:
>
> ================================================================
> Index: SPECS/apache-mod-ngobjweb.spec
> diff -u /dev/null SPECS/apache-mod-ngobjweb.spec:1.1
> --- /dev/null Thu Apr 21 23:42:42 2005
> +++ SPECS/apache-mod-ngobjweb.spec Thu Apr 21 23:42:17 2005
> @@ -0,0 +1,107 @@
> +# $Revision$, $Date$
> +%define  mod_ngobjweb_makeflags  -v
> +%define  sope_version   4.3
> +%define  opengroupware.org_version 1.0a
> +
> +
> +Summary: mod_ngobjweb apache module
> +Name:  sope-mod_ngobjweb
> +Version: 3.15
> +Release: 1
> +Vendor:  OpenGroupware.org
> +License:	LGPL
> +
> +Group:		Development/Libraries
> +#AutoReqProv:	off
> +Requires:	ogo-environment
> +Requires:	apache >= 2.0.40
> +Source0:	http://download.opengroupware.org/sources/trunk/sope-mod_ngobjweb
>-trunk-latest.tar.gz +#Patch:
> +URL:		http://www.softwarestudio.org/libical
> +
> +BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
> +
> +Requires: 	apache >= 2.0.40
> +
> +BuildRequires:	autoconf
> +BuildRequires:	automake
> +BuildRequires:	apache-devel
> +BuildRequires:	apr-devel
> +BuildRequires:	apr-util-devel
> +
> +%description
> +apache2 mod_ngobjweb adaptor (for OpenGroupware.org) .
> +Enables apache to handle HTTP requests for the SOPE application server
> +
> +%description
> +Moduł adaptera ngobjweb (dla OpenGroupware.org).
> +Enables apache to handle HTTP requests for the SOPE application server
> +
> +%prep
> +
> +%setup -n sope-mod_ngobjweb
> +
> +%build
> +. /usr/lib/GNUstep/System/Library/Makefiles/GNUstep.sh
> +export PATH=$PATH:%{_sbindir}
> +make %{mod_ngobjweb_makeflags} apxs=/usr/sbin/apxs HTTPD=/usr/sbin/httpd
> APXS_INCLUDE_DIRS="-I%{_includedir}/apr -I%{_includedir}/apr-util
> -I%{_includedir}/apache" +
> +%install
> +rm -rf $RPM_BUILD_ROOT
> +export PATH=$PATH:%{_sbindir}
> +install -d ${RPM_BUILD_ROOT}%{_libdir}/sope-%{sope_version}
> +cp mod_ngobjweb.so
> ${RPM_BUILD_ROOT}%{_libdir}/sope-%{sope_version}/mod_ngobjweb.so +
> +install -d ${RPM_BUILD_ROOT}%{_var}/lib/opengroupware.org
> +
> +echo "#this file contains the apache/httpd configuration for
> OpenGroupware.org +#it should be included from within your default
> httpd.conf ala:
> +#`include OGo.conf`
> +#(or copy it into the dir where additonal configs end up)
> +#
> +LoadModule ngobjweb_module %{_var}/lib/opengroupware.org/mod_ngobjweb.so
> +#
> +Alias /OpenGroupware10a.woa/WebServerResources/
> %{_prefix}/local/share/opengroupware.org-%{opengroupware.org_version}/www/
> +Alias /ArticleImages %{_var}/lib/opengroupware.org/news
> +#
> +<LocationMatch "^/OpenGroupware*">
> +  SetAppPort 20000
> +  SetHandler ngobjweb-adaptor
> +</LocationMatch>
> +#
> +<LocationMatch "^/zidestore/*">
> +SetHandler ngobjweb-adaptor
> +SetAppPort 21000
> +</LocationMatch>
> +#
> +<LocationMatch "^/RPC2*">
> +SetHandler ngobjweb-adaptor
> +SetAppPort 22000
> +</LocationMatch>
> +" > ${RPM_BUILD_ROOT}%{_var}/lib/opengroupware.org/OGo.conf
> +
> +
> +%post
> +cp %{_var}/lib/opengroupware.org/OGo.conf
> /etc/httpd/httpd.conf/88_OGo.conf +
> +%clean
> +rm -fr ${RPM_BUILD_ROOT}
> +
> +
> +%files
> +%defattr(644,root,root,755)
> +%config %{_sysconfdir}/httpd/httpd.conf/88_OGo.conf
> +%{_libdir}/sope-%{sope_version}/mod_ngobjweb.so
> +%config %{_var}/lib/opengroupware.org/OGo.conf
> +
> +
> +%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
> +%changelog
> +* %{date} PLD Team <feedback at pld-linux.org>
> +All persons listed below can be reached at <cvs_login>@pld-linux.org
> +
> +$Log$
> +Revision 1.1  2005/04/21 21:42:17  wolvverine
> +- NFY
> +-initial spec
> +
>
> ================================================================
> Index: SPECS/libfoundation.spec
> diff -u /dev/null SPECS/libfoundation.spec:1.1
> --- /dev/null	Thu Apr 21 23:42:42 2005
> +++ SPECS/libfoundation.spec	Thu Apr 21 23:42:17 2005
> @@ -0,0 +1,129 @@
> +# $Revision$, $Date$
> +%define		libf_makeflags	-w
> +%define		__source	.
> +
> +Summary:	libFoundation Objective-C library.
> +Name:		libfoundation
> +Version:	1.0
> +Release:	62.1
> +Vendor:		OpenGroupware.org
> +License:	libFoundation license
> +Group:		Development/Libraries
> +AutoReqProv:	off
> +
> +Source0:	http://download.opengroupware.org/sources/trunk/%{name}-trunk-lat
>est.tar.gz +#Patch0:
> +URL:		http://www.opengroupware.org
> +
> +BuildRoot:	%{tmpdir}/%{name}-%{version}.%{release}-root-%(id -u -n)
> +
> +Requires:	libobjc-lf2
> +
> +BuildRequires:	autoconf
> +BuildRequires:	automake
> +BuildRequires:	bison
> +BuildRequires:	flex
> +BuildRequires:	gcc-objc
> +BuildRequires:	libobjc
> +BuildRequires:	gnustep-make >= 1.10.0
> +BuildRequires:	libobjc-lf2
> +BuildRequires:	libobjc-lf2-devel
> +
> +
> +%description
> +This package contains the libFoundation library, an Objective-C
> +library which aims to implement the Foundation part of the OpenStep
> +specification.
> +
> +%package devel
> +Summary:	The header files for the libfoundation objective c library.
> +Group:		Development/Libraries
> +Requires:	gnustep-make >= 1.10.0
> +Requires:	%{name} = %{version}-%{release}
> +AutoReqProv:	off
> +
> +%description devel
> +libFoundation objective-c development package.
> +
> +%prep
> +
> +%setup -q -n libfoundation
> +
> +
> +%build
> +%{__source} %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
> +./configure
> +%{__make} %{libf_makeflags} all
> +
> +
> +%install
> +rm -rf $RPM_BUILD_ROOT
> +%{__source} %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
> +install -d ${RPM_BUILD_ROOT}%{_libdir}
> +install -d
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Makefiles/Additional +
> +%{__make} %{libf_makeflags} INSTALL_ROOT_DIR=${RPM_BUILD_ROOT} \
> +                      
> GNUSTEP_INSTALLATION_DIR=${RPM_BUILD_ROOT}%{_prefix} \ +                   
>    FHS_INSTALL_ROOT=${RPM_BUILD_ROOT}%{_prefix} \ +                      
> install
> +
> +rm -f
> ${RPM_BUILD_ROOT}%{_prefix}/GNUstep/System/Library/Headers/libFoundation/ex
>tensions/exceptions/FoundationException.h +rm -f
> ${RPM_BUILD_ROOT}%{_prefix}/GNUstep/System/Library/Headers/libFoundation/ex
>tensions/exceptions/GeneralExceptions.h +rm -f
> ${RPM_BUILD_ROOT}%{_prefix}/GNUstep/System/Library/Headers/libFoundation/ex
>tensions/exceptions/NSCoderExceptions.h +
> +
> +
> +%post
> +if [ $1 = 1 ]; then
> +  if [ -d %{_sysconfdir}/ld.so.conf.d ]; then
> +    echo "/usr/lib" > %{_sysconfdir}/ld.so.conf.d/libfoundation.conf
> +  elif [ ! "`grep '/usr/lib' %{_sysconfdir}/ld.so.conf`" ]; then
> +    echo "/usr/lib" >> %{_sysconfdir}/ld.so.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +
> +%postun
> +if [ $1 = 0 ]; then
> +  if [ -e %{_sysconfdir}/ld.so.conf.d/libfoundation.conf ]; then
> +    rm -f %{_sysconfdir}/ld.so.conf.d/libfoundation.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +
> +%clean
> +rm -fr ${RPM_BUILD_ROOT}
> +
> +
> +%files
> +%defattr(644,root,root,755)
> +%attr(755,root,root) %{_bindir}/Defaults
> +%attr(755,root,root) %{_libdir}/libFoundation*.so.%{version}
> +# %attr(755,root,root) %{_libdir}/libFoundation*.so.1.0
> +%{_datadir}/libFoundation/CharacterSets
> +%{_datadir}/libFoundation/Defaults
> +%{_datadir}/libFoundation/TimeZoneInfo
> +
> +%files devel
> +%defattr(644,root,root,755)
> +%dir %attr(755,root,root)
> %{_libdir}/GNUstep/System/Library/Makefiles/Additional
> +%{_libdir}/GNUstep/System/Library/Makefiles/Additional/libFoundation.make
> +%{_includedir}/lfmemory.h
> +%{_includedir}/real_exception_file.h
> +%{_includedir}/Foundation
> +%{_includedir}/extensions
> +%attr(755,root,root) %{_libdir}/libFoundation*.so
> +
> +
> +%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
> +%changelog
> +* %{date} PLD Team <feedback at pld-linux.org>
> +All persons listed below can be reached at <cvs_login>@pld-linux.org
> +
> +$Log$
> +Revision 1.1  2005/04/21 21:42:17  wolvverine
> +- NFY
> +-initial spec
> +
>
> ================================================================
> Index: SPECS/libical-sope-devel.spec
> diff -u /dev/null SPECS/libical-sope-devel.spec:1.1
> --- /dev/null	Thu Apr 21 23:42:42 2005
> +++ SPECS/libical-sope-devel.spec	Thu Apr 21 23:42:17 2005
> @@ -0,0 +1,117 @@
> +# $Revision$, $Date$
> +%define		__source	.
> +%define		libical_makeflags	-s
> +
> +Summary:	IETF's iCalendar Calendaring and Scheduling protocols.
> +Name:		libical-sope
> +Version:	1.0
> +Release:	0.38
> +Vendor:		OpenGroupware.org
> +License:	LGPL
> +
> +Group:		Development/Libraries
> +AutoReqProv:	off
> +Source0:	http://download.opengroupware.org/sources/trunk/%{name}-trunk-lat
>est.tar.gz +#Patch0:
> +URL:		http://www.softwarestudio.org/libical
> +
> +BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
> +
> +Requires:	libfoundation
> +Requires:	libobjc-lf2
> +
> +#Requires: gnustep-make
> +BuildRequires:	autoconf
> +BuildRequires:	automake
> +BuildRequires:	bison
> +BuildRequires:	flex
> +BuildRequires:	gcc-objc
> +BuildRequires:	gnustep-make >= 1.10.0
> +BuildRequires:	libobjc-lf2
> +BuildRequires:	libobjc-lf2-devel
> +BuildRequires:	libfoundation-devel
> +BuildRequires:	libfoundation
> +
> +%description
> +Libical is an Open Source implementation of the IETF's iCalendar
> +Calendaring and Scheduling protocols. (RFC 2445, 2446, and 2447). It
> +parses iCal components and provides a C API for manipulating the
> +component properties, parameters, and subcomponents.
> +
> +%prep
> +
> +%setup -q -n libical-sope
> +
> +# ****************************** build ********************************
> +%build
> +%{__source} %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
> +./cfg-gnustep.sh
> +%{__make} %{libical_makeflags} all
> +
> +# ****************************** install ******************************
> +%install
> +rm -rf $RPM_BUILD_ROOT
> +%{__source} %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
> +
> +%{__make} %{libical_makeflags} DESTDIR=${RPM_BUILD_ROOT} \
> +                          FHS_INSTALL_ROOT=${RPM_BUILD_ROOT}%{_prefix} \
> +                          install
> +
> +rm -f
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/libical.la +rm -f
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/libical.so.0.0.0 +rm -f
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/libicalss.la +rm -f
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/libicalss.so.0.0.0 +rm -f
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/libicalvcal.la +rm -f
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/libicalvcal.so.0.0.0 +
> +# ****************************** post *********************************
> +%post
> +if [ $1 = 1 ]; then
> +  if [ -d %{_sysconfdir}/ld.so.conf.d ]; then
> +    echo "%{_libdir}" > %{_sysconfdir}/ld.so.conf.d/libical-sope.conf
> +  elif [ ! "`grep '%{_libdir}' %{_sysconfdir}/ld.so.conf`" ]; then
> +    echo "%{_libdir}" >> %{_sysconfdir}/ld.so.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +# ****************************** postun *********************************
> +%postun
> +if [ $1 = 0 ]; then
> +  if [ -e %{_sysconfdir}/ld.so.conf.d/libical-sope.conf ]; then
> +    rm -f %{_sysconfdir}/ld.so.conf.d/libical-sope.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +# ****************************** clean ********************************
> +%clean
> +rm -fr ${RPM_BUILD_ROOT}
> +
> +# ****************************** files ********************************
> +%files
> +%defattr(644,root,root,755)
> +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/ical.h
> +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/icalss.h
> +%dir %attr(755,root,root)
> %{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/libicalvcal
> +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/libicalvcal/icalvcal
>.h +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/libicalvcal/port.h
> +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/libicalvcal/vcaltmp.
>h +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/libicalvcal/vcc.h
> +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/libicalvcal/vobject.
>h +%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/libical.a
> +%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/libicalss.a
> +%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/libicalvcal.a +
> +
> +# ********************************* changelog *************************
> +%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
> +%changelog
> +* %{date} PLD Team <feedback at pld-linux.org>
> +All persons listed below can be reached at <cvs_login>@pld-linux.org
> +
> +$Log$
> +Revision 1.1  2005/04/21 21:42:17  wolvverine
> +- NFY
> +-initial spec
> +
>
> ================================================================
> Index: SPECS/libobjc-lf2.spec
> diff -u /dev/null SPECS/libobjc-lf2.spec:1.1
> --- /dev/null	Thu Apr 21 23:42:42 2005
> +++ SPECS/libobjc-lf2.spec	Thu Apr 21 23:42:17 2005
> @@ -0,0 +1,117 @@
> +# $Revision$, $Date$
> +
> +%define		libf_objc_makeflags	-s
> +%define		__source		.
> +
> +Summary:	GNUstep Objective C runtime.
> +Name:		libobjc-lf2
> +Version:	lf2
> +Release:	95.3
> +Vendor:		http://www.gnustep.org
> +License:	GPL
> +Group:		Development/Libraries
> +AutoReqProv:	off
> +Source0:	http://download.opengroupware.org/sources/trunk/%{name}-trunk-lat
>est.tar.gz +#Patch0:
> +URL:		http://www.opengroupware.org
> +
> +BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
> +BuildPreReq:	gnustep-make
> +
> +BuildRequires:	autoconf
> +BuildRequires:	automake
> +BuildRequires:	bison
> +BuildRequires:	flex
> +BuildRequires:	gcc-objc
> +BuildRequires:	gnustep-make >= 1.10.0
> +
> +
> +%description
> +GNUstep Objective C runtime.
> +
> +%package devel
> +Summary:	The header files for the objc library.
> +Group:		Development/Libraries
> +Requires:	%{name} = %{version}-%{release}
> +Requires: 	gnustep-make
> +AutoReqProv:	off
> +
> +%description devel
> +GNUstep Objective C development package.
> +
> +%prep
> +%setup -q -n libobjc-lf2
> +
> +%build
> +%{__source} %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
> +%{__make} %{libf_objc_makeflags} all
> +
> +
> +%install
> +rm -rf $RPM_BUILD_ROOT
> +%{__source} %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
> +%{__make} %{libf_objc_makeflags}
> GNUSTEP_INSTALLATION_DIR=${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System install
> +
> +install -d ${RPM_BUILD_ROOT}%{_libdir}
> +mv
> ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu
>/gnu-gnu-gnu/libobjc*.so.lf2* ${RPM_BUILD_ROOT}%{_libdir}/ +
> +
> +%post
> +if [ $1 = 1 ]; then
> +  if [ -e %{_libdir}/libobjc_d.so.lf2 ]; then
> +    cd
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu +   
> ln -s %{_libdir}/libobjc_d.so.lf2
> +  fi
> +  if [ -e %{_libdir}/libobjc.so.lf2 ]; then
> +    cd
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu +   
> ln -s %{_libdir}/libobjc.so.lf2
> +  fi
> +  if [ -d %{_sysconfdir}/ld.so.conf.d ]; then
> +    echo "%{_libdir}" > %{_sysconfdir}/ld.so.conf.d/libobjc-lf2.conf
> +  elif [ ! "`grep '%{_libdir}' %{_sysconfdir}/ld.so.conf`" ]; then
> +    echo "%{_libdir}" >> %{_sysconfdir}/ld.so.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +
> +%postun
> +if [ $1 = 0 ]; then
> +  if [ -h
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libo
>bjc_d.so.lf2 ]; then +    rm -f
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libo
>bjc_d.so.lf2 +  fi
> +  if [ -h
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libo
>bjc.so.lf2 ]; then +    rm -f
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libo
>bjc.so.lf2 +  fi
> +  if [ -e %{_sysconfdir}/ld.so.conf.d/libobjc-lf2.conf ]; then
> +    rm -f %{_sysconfdir}/ld.so.conf.d/libobjc-lf2.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +
> +%clean
> +rm -fr ${RPM_BUILD_ROOT}
> +
> +
> +%files
> +%defattr(644,root,root,755)
> +%attr(755,root,root) %{_libdir}/libobjc*.so.lf2*
> +%files devel
> +%defattr(644,root,root,755)
> +%{_libdir}/GNUstep/System/Library/Headers/gnu-gnu-gnu/objc
> +%attr(755,root,root)
> %{_libdir}/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libo
>bjc*.so +
> +
> +%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
> +%changelog
> +* %{date} PLD Team <feedback at pld-linux.org>
> +All persons listed below can be reached at <cvs_login>@pld-linux.org
> +
> +$Log$
> +Revision 1.1  2005/04/21 21:42:17  wolvverine
> +- NFY
> +-initial spec
> +
> +* Wed Sep 09 2004 Frank Reppin <frank at opengroupware.org>
> +- initial build
>
> ================================================================
> Index: SPECS/opengroupware-environment.spec
> diff -u /dev/null SPECS/opengroupware-environment.spec:1.1
> --- /dev/null	Thu Apr 21 23:42:42 2005
> +++ SPECS/opengroupware-environment.spec	Thu Apr 21 23:42:17 2005
> @@ -0,0 +1,135 @@
> +# $Revision$, $Date$
> +Summary:	OGo environment
> +Name:		ogo-environment
> +Version:	1.0a
> +Release:	8
> +Vendor:		http://www.opengroupware.org
> +License:	LGPL
> +Group:		Development/Libraries
> +AutoReqProv:	off
> +#Source:			%{ogo_env_source}
> +#Patch:
> +URL:		http://www.gnustep.org
> +#Requires:
> +#BuildPreReq:
> +BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
> +
> +%description
> +Adds the required user and some configurations.
> +
> +%description
> +Ustawia wymagane przez OpenGroupware.org zmienne, userów i podstawową
> konfiguracje. +
> +
> +%prep
> +
> +
> +%build
> +
> +
> +%install
> +rm -rf $RPM_BUILD_ROOT
> +install -d
> ${RPM_BUILD_ROOT}%{_var}/lib/opengroupware.org/.libFoundation/Defaults
> +install -d ${RPM_BUILD_ROOT}%{_var}/lib/opengroupware.org/documents
> +install -d ${RPM_BUILD_ROOT}%{_var}/lib/opengroupware.org/news
> +
> +
> +%pre
> +if [ $1 = 1 ]; then
> +  OGO_USER="ogo"
> +  OGO_GROUP="skyrix"
> +  OGO_SHELL="`which bash`"
> +  OGO_HOME="%{_var}/lib/opengroupware.org"
> +  echo -en "adding group ${OGO_GROUP}.\n"
> +  /usr/sbin/groupadd "${OGO_GROUP}" 2>/dev/null || :
> +  echo -en "adding user ${OGO_USER}.\n"
> +  /usr/sbin/useradd -c "OpenGroupware.org User" \
> +                    -s "${OGO_SHELL}" -d "${OGO_HOME}" -g "${OGO_GROUP}"
> "${OGO_USER}" 2>/dev/null || : +fi
> +
> +
> +%post
> +if [ $1 = 1 ]; then
> +  cd %{_sysconfdir}
> +  ln -s %{_var}/lib/opengroupware.org/.libFoundation opengroupware.org
> +  ## some defaults
> +  OGO_USER="ogo"
> +  export PATH=$PATH:%{prefix}/bin
> +  su - ${OGO_USER} -c "
> +  Defaults write NSGlobalDomain LSConnectionDictionary
> '{hostName=localhost; userName=OGo; password=\"\"; port=5432;
> databaseName=OGo}' +  Defaults write NSGlobalDomain skyrix_id `hostname`
> +  Defaults write NSGlobalDomain TimeZoneName GMT
> +  Defaults write NSGlobalDomain WOHttpAllowHost '( localhost, 127.0.0.1,
> localhost.localdomain)' +  Defaults write nhsd NGBundlePath
> '%{prefix}/opengroupware.org-1.0a/conduits' +  "
> +  ##
> +  if [ -f %{_var}/lib/pgsql/data/pg_hba.conf ]; then
> +    if [ "`grep -iE '^host.*all.*all.*127.0.0.1.*trust$'
> %{_var}/lib/pgsql/data/pg_hba.conf`" ]; then +      echo -en "pg_hba.conf
> seems to be OK.\n"
> +    else
> +      echo -en "pg_hba.conf needs to be edited - please refer to our
> FAQ\n" +    fi
> +  fi
> +  if [ -f %{_var}/lib/pgsql/data/postgresql.conf ]; then
> +    if [ "`grep -iE '^tcpip_socket.*=.*true$'
> %{_var}/lib/pgsql/data/postgresql.conf`" ]; then +      echo -en
> "postgresql.conf seems to be OK.\n"
> +    else
> +      echo -en "postgresql.conf needs to be edited - please refer to our
> FAQ\n" +    fi
> +  fi
> +  ##
> +  if [ -d %{_sysconfdir}/ld.so.conf.d ]; then
> +    echo "%{_libdir}/" > %{_sysconfdir}/ld.so.conf.d/opengroupware.conf
> +  elif [ ! "`grep '%{_libdir}/' %{_sysconfdir}/ld.so.conf`" ]; then
> +    echo "%{_libdir}/" >> %{_sysconfdir}/ld.so.conf
> +  fi
> +  /sbin/ldconfig
> +fi
> +
> +
> +%postun
> +if [ $1 = 0 ]; then
> +  OGO_USER="ogo"
> +  OGO_GROUP="skyrix"
> +  if [ "`getent passwd ${OGO_USER}`" ]; then
> +    echo -en "removing user ${OGO_USER}.\n"
> +    /usr/sbin/userdel "${OGO_USER}" 2>/dev/null || :
> +  fi
> <<Diff was trimmed, longer than 597 lines>>
>
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
glen




More information about the pld-devel-en mailing list