Author: coudot Date: 2010-07-29 17:14:03 +0200 (Thu, 29 Jul 2010) New Revision: 119
Added: self-service-password/trunk/packaging/rpm/ self-service-password/trunk/packaging/rpm/SOURCES/ self-service-password/trunk/packaging/rpm/SOURCES/self-service-password-apache.conf self-service-password/trunk/packaging/rpm/SPECS/ self-service-password/trunk/packaging/rpm/SPECS/self-service-password.spec Modified: self-service-password/trunk/packaging/README Log: Build files for RPM (references #185) Modified: self-service-password/trunk/packaging/README =================================================================== --- self-service-password/trunk/packaging/README 2010-07-29 15:08:29 UTC (rev 118) +++ self-service-password/trunk/packaging/README 2010-07-29 15:14:03 UTC (rev 119) @@ -23,3 +23,32 @@ If you do not have LTB GPG secret key, do: $ dpkg-buildpackage -b -us -uc +# 2 - RPM (RHEL, CentOS, Fedora, ...) +#============================================================================== + +Prepare your build environment, for example in /home/clement/build. +You should have a ~/.rpmmacros like this: + +---- +%_topdir /home/clement/build +%dist .el5 +%distribution .el5 +%_signature gpg +%_gpg_name 6D45BFC5 +%_gpgbin /usr/bin/gpg +%packager Clement OUDOT <[email protected]> +%vendor LTB-project +---- + +Copy packaging files from current directory to build directory: +$ cp -Ra rpm/* /home/clement/build + +Copy Self Service Archive to SOURCES/: +$ cp ltb-project-self-service-password-VERSION.tar.gz /home/clement/build/SOURCES + +Go in build directory and build package: +$ cd /home/clement/build +$ rpmbuild -ba SPECS/self-service-password.spec + +Sign RPM: +$ rpm --addsign RPMS/noarch/self-service-password* Added: self-service-password/trunk/packaging/rpm/SOURCES/self-service-password-apache.conf =================================================================== --- self-service-password/trunk/packaging/rpm/SOURCES/self-service-password-apache.conf (rev 0) +++ self-service-password/trunk/packaging/rpm/SOURCES/self-service-password-apache.conf 2010-07-29 15:14:03 UTC (rev 119) @@ -0,0 +1,14 @@ +NameVirtualHost * +<VirtualHost *> + ServerName ssp.example.com + + DocumentRoot /usr/share/self-service-password + DirectoryIndex index.php + + AddDefaultCharset UTF-8 + + LogLevel warn + ErrorLog /var/log/httpd/ssp_error_log + CustomLog /var/log/httpd/ssp_access_log combined +</VirtualHost> + Added: self-service-password/trunk/packaging/rpm/SPECS/self-service-password.spec =================================================================== --- self-service-password/trunk/packaging/rpm/SPECS/self-service-password.spec (rev 0) +++ self-service-password/trunk/packaging/rpm/SPECS/self-service-password.spec 2010-07-29 15:14:03 UTC (rev 119) @@ -0,0 +1,113 @@ +#================================================= +# Specification file for Self Service Password +# +# Install LTB project Self Service Password +# +# GPL License +# +# Copyright (C) 2009-2012 Clement OUDOT +# Copyright (C) 2009-2012 LTB-project +#================================================= + +#================================================= +# Variables +#================================================= +%define ssp_name self-service-password +%define ssp_realname ltb-project-%{name} +%define ssp_version 0.4 +%define ssp_destdir /usr/share/%{name} + +#================================================= +# Header +#================================================= +Summary: LDAP password change web interface +Name: %{ssp_name} +Version: %{ssp_version} +Release: 1%{?dist} +License: GPL +BuildArch: noarch + +Group: Applications/Web +URL: http://ltb-project.org + +Source: %{ssp_realname}-%{ssp_version}.tar.gz +Source1: self-service-password-apache.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Prereq: coreutils +Requires: php, php-ldap + +%description +Self Service Password is a simple PHP application that allows users to change their password on an LDAP directory. +Self Service Password is provided by LDAP Tool Box project: http://ltb-project.org + +#================================================= +# Source preparation +#================================================= +%prep +%setup -n %{ssp_realname}-%{ssp_version} + +#================================================= +# Installation +#================================================= +%install +rm -rf %{buildroot} + +# Create directories +mkdir -p %{buildroot}/%{ssp_destdir} +mkdir -p %{buildroot}/%{ssp_destdir}/lang +mkdir -p %{buildroot}/%{ssp_destdir}/pages +mkdir -p %{buildroot}/%{ssp_destdir}/style +mkdir -p %{buildroot}/etc/httpd/conf.d + +# Copy files +## PHP +install -m 644 *.php %{buildroot}/%{ssp_destdir} +install -m 644 lang/* %{buildroot}/%{ssp_destdir}/lang +install -m 644 pages/* %{buildroot}/%{ssp_destdir}/pages +install -m 644 style/* %{buildroot}/%{ssp_destdir}/style +## Apache configuration +install -m 644 %{SOURCE1} %{buildroot}/etc/httpd/conf.d/self-service-password.conf + +%post +#================================================= +# Post Installation +#================================================= + +# Change owner +/bin/chown -R httpd:httpd %{ssp_destdir} + +#================================================= +# Cleaning +#================================================= +%clean +rm -rf %{buildroot} + +#================================================= +# Files +#================================================= +%files +%defattr(-, root, root, 0755) +%config(noreplace) %{ssp_destdir}/config.inc.php +%config(noreplace) /etc/httpd/conf.d/self-service-password.conf +%{ssp_destdir} + +#================================================= +# Changelog +#================================================= +%changelog +* Thu Jul 29 2010 - Clement Oudot <[email protected]> - 0.4-1 +- Bug #183: Corrected german translations +- Bug #189: Accentued characters in passwords are not well managed +- Bug #258: LTB advertises features even if not configured +- Feature #146: Lost Password +- Feature #178: Reject some special characters from passwords +- Feature #181: Secret Question feature to reset/set your own password +- Feature #185: Provide packages for SSP +- Feature #186: Check special characters in password +- Feature #207: Use separate files for language strings +- Feature #233: Rewrite documentation +- Feature #256: Display password policy details only on failures for authenticated users +- Feature #259: Check that user doesn't reuse the same password +- Feature #266: Add pt-BR lang + Property changes on: self-service-password/trunk/packaging/rpm/SPECS/self-service-password.spec ___________________________________________________________________ Added: svn:executable + * _______________________________________________ ltb-changes mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-changes
