spec files updated to support SuSE directorys and the build sript scan for trojans and viruses

This commit is contained in:
reinerj 2004-02-09 09:53:24 +00:00
parent 64eb32d00e
commit 32c32d3bc9
3 changed files with 95 additions and 45 deletions

View File

@ -22,7 +22,7 @@
# How to create GPG keys to sign your rpm's you will found in a seperate # How to create GPG keys to sign your rpm's you will found in a seperate
# Document # Document
# #
# Script changed 2003 Sep 05 Reiner Jung # Script changed 2004 Feb 07 Reiner Jung
SPECFILE=egroupware.spec SPECFILE=egroupware.spec
SPECFILE2=egroupware-allapp.spec SPECFILE2=egroupware-allapp.spec
@ -38,6 +38,7 @@ RHBASE=/home/$HOMEBUILDDIR/redhat
SRCDIR=$RHBASE/SOURCES SRCDIR=$RHBASE/SOURCES
SPECDIR=$RHBASE/SPECS SPECDIR=$RHBASE/SPECS
LOGFILE=$SPECDIR/build-$PACKAGENAME-$VERSION-$PACKAGING.log LOGFILE=$SPECDIR/build-$PACKAGENAME-$VERSION-$PACKAGING.log
VIRUSSCAN=$SPECDIR/clamav_scan-$PACKAGENAME-$VERSION-$PACKAGING.log
MD5SUM=$SRCDIR/md5sum-$PACKAGENAME-$VERSION-$PACKAGING.txt MD5SUM=$SRCDIR/md5sum-$PACKAGENAME-$VERSION-$PACKAGING.txt
@ -52,6 +53,10 @@ rm Root.anonymous
echo "End from CVS update" >> $LOGFILE 2>&1 echo "End from CVS update" >> $LOGFILE 2>&1
echo "---------------------------------------" >> $LOGFILE 2>&1 echo "---------------------------------------" >> $LOGFILE 2>&1
clamscan -r $ANONCVSDIR --log=$VIRUSSCAN
echo "End from Anti Virus Scan" >> $LOGFILE 2>&1
echo "---------------------------------------" >> $LOGFILE 2>&1
cd $ANONCVSDIR/.. cd $ANONCVSDIR/..
tar czvf $SRCDIR/$PACKAGENAME-$VERSION-$PACKAGING.tar.gz egroupware >> $LOGFILE 2>&1 tar czvf $SRCDIR/$PACKAGENAME-$VERSION-$PACKAGING.tar.gz egroupware >> $LOGFILE 2>&1
@ -78,6 +83,10 @@ echo "sign the md5sum file" >> $LOGFILE 2>&1
gpg --clearsign $MD5SUM >> $LOGFILE 2>&1 gpg --clearsign $MD5SUM >> $LOGFILE 2>&1
echo "---------------------------------------" >> $LOGFILE 2>&1 echo "---------------------------------------" >> $LOGFILE 2>&1
echo "delete the original md5sum file" >> $LOGFILE 2>&1
rm -rf $MD5SUM >> $LOGFILE 2>&1
echo "---------------------------------------" >> $LOGFILE 2>&1
echo "Build signed source files" >> $LOGFILE 2>&1 echo "Build signed source files" >> $LOGFILE 2>&1
gpg -s $SRCDIR/$PACKAGENAME-$VERSION-$PACKAGING.tar.gz >> $LOGFILE 2>&1 gpg -s $SRCDIR/$PACKAGENAME-$VERSION-$PACKAGING.tar.gz >> $LOGFILE 2>&1

View File

@ -1,24 +1,30 @@
%define packagename eGroupWare-all-apps %define packagename eGroupWare-all-apps
%define egwdirname egroupware %define egwdirname egroupware
%define version 0.9.99.011 %define version 0.9.99.013
%define packaging 1 %define packaging 2
%define httpdroot /var/www/html %define epoch 0
%define httpdroot %(if test -f /etc/SuSE-release; then echo /srv/www/htdocs; else echo /var/www/html; fi)
Summary: eGroupWare is a web-based groupware suite written in php.
Name: %{packagename} Name: %{packagename}
Version: %{version} Version: %{version}
Release: %{packaging} Release: %{packaging}
Copyright: GPL Epoch: %{epoch}
Summary: eGroupWare is a web-based groupware suite written in php.
Group: Web/Database Group: Web/Database
URL: http://www.egroupware.org/ License: GPL/LGPL
Source: eGroupWare-%{version}-%{packaging}.tar.bz2 URL: http://www.phpgroupware.org/
Source0: http://download.sourceforge.net/egroupware/eGroupWare-%{version}-%{packaging}.tar.bz2
BuildRoot: /tmp/%{packagename}-buildroot BuildRoot: /tmp/%{packagename}-buildroot
Requires: php >= 4.0.6
Prefix: %{httpdroot} Prefix: %{httpdroot}
Vendor: eGroupWare
Packager: eGroupWare <r.jung@creativix.net>
Buildarch: noarch Buildarch: noarch
AutoReqProv: no AutoReqProv: no
Requires: php >= 4.0.6
Vendor: eGroupWare
Packager: eGroupWare <r.jung@creativix.net>
%description %description
eGroupWare is a web-based groupware suite written in PHP. This package provides: eGroupWare is a web-based groupware suite written in PHP. This package provides:
@ -31,7 +37,6 @@ apps project for add-on apps.
%setup -n %{egwdirname} %setup -n %{egwdirname}
%build %build
# no build required
%install %install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
@ -123,7 +128,22 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{egwdirname}
%{prefix}/%{egwdirname}/wiki %{prefix}/%{egwdirname}/wiki
%changelog %changelog
* Thu Mon 26 2003 Reiner Jung <r.jung@creativix.net> 0.9.99.011 * Sat Feb XX 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.013-x
- add support to spec file for SuSE directory structure
* Sat Feb 07 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.013-2
- RC3-4 bugfix for broken calender ACL
* Sat Feb 07 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.013-1
- Release RC3-3 is only a small bugfixing for some installations
- PostgreSQL bug fixed
- Email Bug fixed
- Login problem on some clients fixed
* Wed Jan 28 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.012-2
- We use the download problem at out server buf fix some other problems
* Wed Jan 28 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.012
- remove justweb template - remove justweb template
- Skel app added as package - Skel app added as package
- Messenger back in eGW - Messenger back in eGW
@ -138,11 +158,13 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{egwdirname}
- new template set included jerryr (preview to 1.0 version) - new template set included jerryr (preview to 1.0 version)
- felamimail extension (folders) - felamimail extension (folders)
- email bugfixes and extensions - email bugfixes and extensions
- username case sensitive
- encrytion from passwords for header.inc.php and database passwords added - encrytion from passwords for header.inc.php and database passwords added
- JiNN CMS updated - JiNN CMS updated
- addressbook import extended - addressbook import extended
- wiki some extensions - wiki some extensions
- many Bugs fixed - many Bugs fixed
- fudforum available in a updated version
* Mon Dec 22 2003 Reiner Jung <r.jung@creativix.net> 0.9.99.008-2 * Mon Dec 22 2003 Reiner Jung <r.jung@creativix.net> 0.9.99.008-2
- Bug fix for PostgreSQL error. - Bug fix for PostgreSQL error.

View File

@ -1,8 +1,9 @@
%define packagename eGroupWare %define packagename eGroupWare
%define egwdirname egroupware %define egwdirname egroupware
%define version 0.9.99.011 %define version 0.9.99.013
%define packaging 1 %define packaging 2
%define httpdroot /var/www/html %define epoch 0
%define httpdroot %(if test -f /etc/SuSE-release; then echo /srv/www/htdocs; else echo /var/www/html; fi)
%define addressbook addressbook %define addressbook addressbook
%define backup backup %define backup backup
@ -36,21 +37,26 @@
%define tts tts %define tts tts
%define wiki wiki %define wiki wiki
Summary: eGroupWare is a web-based groupware suite written in php.
Name: %{packagename} Name: %{packagename}
Version: %{version} Version: %{version}
Release: %{packaging} Release: %{packaging}
Copyright: GPL Epoch: %{epoch}
Summary: eGroupWare is a web-based groupware suite written in php.
Group: Web/Database Group: Web/Database
License: GPL/LGPL
URL: http://www.phpgroupware.org/ URL: http://www.phpgroupware.org/
Source: %{packagename}-%{version}-%{packaging}.tar.bz2 Source0: http://download.sourceforge.net/egroupware/%{packagename}-%{version}-%{packaging}.tar.bz2
BuildRoot: /tmp/%{packagename}-buildroot BuildRoot: /tmp/%{packagename}-buildroot
Requires: php >= 4.0.6
Prefix: %{httpdroot} Prefix: %{httpdroot}
Vendor: eGroupWare
Packager: eGroupWare <r.jung@creativix.net>
Buildarch: noarch Buildarch: noarch
AutoReqProv: no AutoReqProv: no
Requires: php >= 4.0.6
Vendor: eGroupWare
Packager: eGroupWare <r.jung@creativix.net>
%description %description
eGroupWare is a web-based groupware suite written in PHP. eGroupWare is a web-based groupware suite written in PHP.
The core package provides the admin, setup, phpgwapi and preferences The core package provides the admin, setup, phpgwapi and preferences
@ -208,7 +214,7 @@ Requires: eGroupWare = %{version}-%{packaging}
The %{jinn} app is a multi-site, multi-database, multi-user/-group, database driven Content Management System written in and for the eGroupWare Framework. The %{jinn} app is a multi-site, multi-database, multi-user/-group, database driven Content Management System written in and for the eGroupWare Framework.
%package %{messenger} %package %{messenger}
Summary: The eGroupWare %{messenger} application Summary: The eGroupWare %{version} application
Group: Web/Database Group: Web/Database
AutoReqProv: no AutoReqProv: no
Requires: eGroupWare = %{version}-%{packaging} Requires: eGroupWare = %{version}-%{packaging}
@ -272,20 +278,20 @@ Requires: eGroupWare = %{version}-%{registration}
This is the %{registration} app for eGroupWare. This is the %{registration} app for eGroupWare.
%package %{skel} %package %{skel}
Summary: The eGroupWare %{skel} application Summary: The eGroupWare Skeleton application
Group: Web/Database Group: Web/Database
AutoReqProv: no AutoReqProv: no
Requires: eGroupWare = %{version}-%{packaging} Requires: eGroupWare = %{version}-%{packaging}
%description %{skel} %description %{skel}
This is the %{skel} app for eGroupWare. This is the Skeleton app for eGroupWare.
%package %{sitemgr} %package %{sitemgr}
Summary: The eGroupWare %{sitemgr} application Summary: The eGroupWare Sitemanager CMS application
Group: Web/Database Group: Web/Database
AutoReqProv: no AutoReqProv: no
Requires: eGroupWare = %{version}-%{packaging} Requires: eGroupWare = %{version}-%{packaging}
%description %{sitemgr} %description %{sitemgr}
This is the %{sitemgr} app for eGroupWare. This is the Sitemanager CMS app for eGroupWare.
%package %{stocks} %package %{stocks}
Summary: The eGroupWare %{stocks} application Summary: The eGroupWare %{stocks} application
@ -296,12 +302,12 @@ Requires: eGroupWare = %{version}-%{packaging}
This is the %{stocks} app for eGroupWare. This is the %{stocks} app for eGroupWare.
%package %{tts} %package %{tts}
Summary: The eGroupWare %{tts} application Summary: The eGroupWare trouble ticket system application
Group: Web/Database Group: Web/Database
AutoReqProv: no AutoReqProv: no
Requires: eGroupWare = %{version}-%{packaging} Requires: eGroupWare = %{version}-%{packaging}
%description %{tts} %description %{tts}
This is the %{tts} app for eGroupWare. This is the trouble ticket system} app for eGroupWare.
%package %{wiki} %package %{wiki}
Summary: The eGroupWare %{wiki} application Summary: The eGroupWare %{wiki} application
@ -328,33 +334,29 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{egwdirname}
%post %post
echo "***************************************************" echo "***************************************************"
echo "* Attention: You must create the folder FILES *" echo "* Attention: You must create the folder FILES *"
echo "* manually outside the root from your *" echo "* manually outside the root from your *"
echo "* webserver root. *" echo "* webserver root. *"
echo "* The folder must include the folders users and *" echo "* The folder must include the folders users and *"
echo "* files like: /var/www/ *" echo "* files like: /var/www/ *"
echo "* egwfiles/ *" echo "* egwfiles/ *"
echo "* users *" echo "* users *"
echo "* groups *" echo "* groups *"
echo "* Give the webserver the rights to read and write *" echo "* Give the webserver the rights to read and write *"
echo "***************************************************" echo "* and no anonymous access to this folders *"
echo "* Please secure you apache and add *" echo "* *************************************************"
echo "* Please secure you apache and add *"
echo "* the follow lines to you httpd.conf *" echo "* the follow lines to you httpd.conf *"
echo "* *" echo "* *"
echo "* <Directory /var/www/html/egroupware> *" echo "* <Directory /var/www/html/egroupware> *"
echo "* <Files ~ "\.inc\.php$"> *" echo "* <Files ~ "\.inc\.php$|.tpl$"> *"
echo "* Order allow,deny *"
echo "* Deny from all *"
echo "* </Files> *"
echo "* <Files ~ ".tpl$"> *"
echo "* Order allow,deny *" echo "* Order allow,deny *"
echo "* Deny from all *" echo "* Deny from all *"
echo "* </Files> *" echo "* </Files> *"
echo "* </Directory> *"
echo "***************************************************" echo "***************************************************"
%postun %postun
%files %files
@ -451,7 +453,7 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{egwdirname}
%files %{messenger} %files %{messenger}
%defattr(-,root,root) %defattr(-,root,root)
%{prefix}/%{egroupware}/%{messenger} %{prefix}/%{egwdirname}/%{messenger}
%files %{news_admin} %files %{news_admin}
%defattr(-,root,root) %defattr(-,root,root)
@ -502,12 +504,27 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{egwdirname}
%{prefix}/%{egwdirname}/%{wiki} %{prefix}/%{egwdirname}/%{wiki}
%changelog %changelog
* Thu Jan 22 2003 Reiner Jung <r.jung@creativix.net> 0.9.99.011 * Sat Feb 07 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.013-x
- add support to spec file for SuSE directory structure
* Sat Feb 07 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.013-2
- bugfix for broken calender ACL
* Sat Feb 07 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.013-1
- Release RC3-3 is only a small bugfixing for some installations
- PostgreSQL bug fixed
- Email Bug fixed
- Login problem on some clients fixed
* Wed Jan 28 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.012-2
- We use the download problem at out server buf fix some other problems
* Wed Jan 28 2004 Reiner Jung <r.jung@creativix.net> 0.9.99.012-1
- remove justweb template - remove justweb template
- Skel app added as package - Skel app added as package
- Messenger back in eGW - Messenger back in eGW
- Spanish translation finished - Spanish translation finished
- Ukrain translation 50% finished - Ukrain translation added to eGW and more than 50% finished
- extensions on Italian translation - extensions on Italian translation
- backup rewrite - backup rewrite
- Poll upp is rewrited - Poll upp is rewrited
@ -516,12 +533,14 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{egwdirname}
- extension on idots - extension on idots
- new template set included jerryr (preview to 1.0 version) - new template set included jerryr (preview to 1.0 version)
- felamimail extension (folders) - felamimail extension (folders)
- email bugfixes and extensions - email bugfixes and some nice extensions
- encrytion from passwords for header.inc.php and database passwords added - encrytion from passwords for header.inc.php and database passwords added
- username case sensitive
- JiNN CMS updated - JiNN CMS updated
- addressbook import extended - addressbook import extended
- wiki some extensions - wiki some extensions
- many Bugs fixed - many Bugs fixed
- fudforum available in a updated version
* Mon Dec 22 2003 Reiner Jung <r.jung@creativix.net> 0.9.99.008-2 * Mon Dec 22 2003 Reiner Jung <r.jung@creativix.net> 0.9.99.008-2
- Bug fix for PostgreSQL error. - Bug fix for PostgreSQL error.