Summary: Perforce configuration management Name: p4 Version: 2000.2 Release: 19250 Group: Development/Tools Copyright: Perforce Software. Vendor: Perforce Software URL: http://www.perforce.com BuildRoot: /var/tmp/p4 Source0: p4.tar.gz Source1: p4d Source2: p4 %description Perforce is a fast, reliable Software Configuration Management (SCM) System that runs on over 40 platforms. It is a commercial product but is available free of charge for Open Source development. %package -n p4-server Summary: Perforce - the F-f-f-a-s-t SCM system! Group: Development/Tools Version: 2000.2 Release: 19250 Requires: p4-client %description -n p4-server Perforce is a fast, reliable Software Configuration Management (SCM) System that runs on over 40 platforms. It is a commercial product but is available free of charge for Open Source development. This is the server package. You only need this package on the machine that will be your Perforce server. On other machines, install the client package only. %package -n p4-client Summary: Perforce - the F-f-f-a-s-t SCM system! Group: Development/Tools Version: 2000.2 Release: 19250 %description -n p4-client Perforce is a fast, reliable Software Configuration Management (SCM) System that runs on over 40 platforms. It is a commercial product but is available free of charge for Open Source development. Install this package if you will be using the Perforce SCM tool as a client. %prep %setup -q -n p4-suse %build %install rm -rf $RPM_BUILD_ROOT # Since install -D has a bug which doesn't allow the target file name to # differ from the source file name, we create some of the dirs first. mkdir -p $RPM_BUILD_ROOT/etc/cron.daily \ $RPM_BUILD_ROOT/etc/logrotate.d \ $RPM_BUILD_ROOT/sbin/init.d \ $RPM_BUILD_ROOT/home/perforce/p4root \ $RPM_BUILD_ROOT/var/log/perforce install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/bin/p4d install -D -m 755 %{SOURCE2} $RPM_BUILD_ROOT/usr/bin/p4 install -m 755 p4d.init $RPM_BUILD_ROOT/sbin/init.d/p4d install -D -m 644 p4d.conf $RPM_BUILD_ROOT/etc/p4d.conf install -D -m 755 p4.csh $RPM_BUILD_ROOT/etc/profile.d/p4.csh install -D -m 755 p4.sh $RPM_BUILD_ROOT/etc/profile.d/p4.sh install -m 755 p4d.checkpoint $RPM_BUILD_ROOT/etc/cron.daily/p4-checkpoint install -m 644 p4d.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/p4d install -m 600 p4config $RPM_BUILD_ROOT/home/perforce/.p4config %clean rm -rf $RPM_BUILD_ROOT %files -n p4-server %defattr(-,root,root) %config /etc/p4d.conf %attr(700, perforce, perforce) /var/log/perforce %attr(700, perforce, perforce) /home/perforce /usr/bin/p4d /sbin/init.d /etc/cron.daily /etc/logrotate.d %files -n p4-client %defattr(-,root,root) /usr/bin/p4 /etc/profile.d %pre -n p4-server # Check that the group perforce exists and if not, create it. if grep ^perforce /etc/group >/dev/null 2>&1 ; then : else groupadd perforce fi # Check that perforce user exists and if not create it. if grep ^perforce /etc/passwd >/dev/null 2>&1 ; then # It exists already : else useradd -c "Perforce Administrator" -d /home/perforce -g perforce -m perforce fi %post -n p4-server # Install the startup scripts. ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc0.d/K15p4d ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc1.d/K15p4d ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc2.d/K15p4d ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc3.d/S85p4d ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc4.d/S85p4d ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc5.d/S85p4d ln -s ../p4d $RPM_BUILD_ROOT/sbin/init.d/rc6.d/K15p4d %postun -n p4-server # Remove the symlinks from the init dirs rm /sbin/init.d/rc0.d/K15p4d rm /sbin/init.d/rc1.d/K15p4d rm /sbin/init.d/rc2.d/K15p4d rm /sbin/init.d/rc3.d/S85p4d rm /sbin/init.d/rc4.d/S85p4d rm /sbin/init.d/rc5.d/S85p4d rm /sbin/init.d/rc6.d/K15p4d %changelog * Thu Jan 04 2001 Tony Smith <tony@perforce.com> - Light RPM not including the docs * Mon Dec 11 2000 Tony Smith <tony@perforce.com> - Validated on SuSE Linux. * Tue Nov 14 2000 Tony Smith <tony@perforce.com> - Updated to work better on non-redhat related distro's which don't have chkconfig (fools!). Also moved user creation into %pre section rather than post as it was generating errors. * Mon Oct 17 2000 Tony Smith <tony@perforce.com> - Tidied package definitions so that SRPM is just p4 rather than p4-server. RPMS are properly named. Also incorporated the logrotate stuff from Matthew Rice's SRPM (thanks Matthew!), and put in a checkpoint & verify script in /etc/cron.daily. Also moved log file and journal to /var/log/p4 as these files may be on a different device to /home which makes the default config a little more resilient. * Tue Sep 19 2000 Tony Smith <tony@perforce.com> - Adapted so that the binaries are not part of the tarball to make it easier to update the RPM without having to build a tarball. * Fri Sep 15 2000 Tony Smith <tony@perforce.com> - Initial version
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 496 | Tony Smith | Set up integ path from Redhat dir to SuSE | ||
#1 | 495 | Tony Smith | Re-ordered directory structure for the ( hopefully ) last time | ||
//guest/tony_smith/perforce/RPM/RedHat/p4-suse/p4.spec | |||||
#2 | 493 | Tony Smith |
Changes for SuSE linux. The main area of difference is the layout of the SysV init scripts which on SuSE live in /sbin/init.d instead of /etc/rc.d/init.d. The symlinks they use to compensate for this confuse RPM so it's better to just put the files in the right place first time. The init script itself is a little different too as they use slightly different functions to start/stop processes. |
||
#1 | 492 | Tony Smith | Branch Redhat specfile suse-wise | ||
//guest/tony_smith/perforce/RPM/RedHat/p4-redhat/p4.spec | |||||
#1 | 491 | Tony Smith |
Adjustments. Now downloads 2000.2 by default and the buildscript now takes a --distro argument so you can specify what style of RPM you want. Means I've got to rename these paths again I guess. The tarball is now built on the fly based on the distro you pick. |
||
//guest/tony_smith/perforce/RPM/RedHat/p4.spec | |||||
#1 | 487 | Tony Smith |
Renamed the RPM building tree because this RPM is quite RedHat specific. SuSE RPM builder to be added |
||
//guest/tony_smith/perforce/SRPM/p4.spec | |||||
#5 | 471 | Tony Smith |
Updated to work on distro's that don't have chkconfig. Moved the perforce user creation to %pre section as it was causing errors in %post. |
||
#4 | 458 | Tony Smith |
Fixed the checkpoint deletion script which was previously broken. Tweaked the spec file so that the perforce user is created prior to the file installation so the ownership is set correctly. Updated the build script so that the target type is always set to i386 since that's how p4 and p4d are built. |
||
#3 | 449 | Tony Smith | Corrected some minor irritations. | ||
#2 | 448 | Tony Smith |
Updated RPM building kit so that it will automatically download the latest binaries from ftp.perforce.com. Spec file is also a bit more clever, and logrotate, checkpointing and verify support has been added. Thanks to Matthew Rice for the logrotate script! |
||
#1 | 429 | Tony Smith | First pass at RPM building toolkit. |