/[polypkg]/trunk
ViewVC logotype

Log of /trunk

View Directory Listing Directory Listing


Sticky Revision:

Revision 229 - Directory Listing
Modified Tue Oct 27 20:24:32 2009 UTC (3 weeks, 4 days ago) by rcweb
Solaris no /etc/rc?.d/*quest-sshd fix, and label the HP packages a little better. 

Revision 228 - Directory Listing
Modified Fri Sep 18 21:46:04 2009 UTC (2 months ago) by tperciva
Make pp-stripped depend on .svn too

Revision 227 - Directory Listing
Modified Mon Sep 14 17:29:37 2009 UTC (2 months, 1 week ago) by tperciva
Make `pp` depend on .svn so the svnversion is not out-of-date

Prevents `pp` retaining an old revision number after committing local
changes.

Revision 226 - Directory Listing
Modified Mon Sep 14 17:25:57 2009 UTC (2 months, 1 week ago) by tperciva
Restore installed-version nagging to `pp` target

To help prevent the public pp version being out-of-date

Reverts revision 195.

Revision 225 - Directory Listing
Modified Wed Aug 12 19:32:35 2009 UTC (3 months, 1 week ago) by tperciva
Don't generate a request script unless necessary

(Solaris)

Fixes bug #707.

Revision 224 - Directory Listing
Modified Tue Jun 23 22:59:51 2009 UTC (4 months, 4 weeks ago) by tperciva
Fix optional service prompting on Solaris

It would sometimes cause polypkg to hang while waiting for the
`yes` command to run indefinitely.

Bug introduced in r222.

Revision 223 - Directory Listing
Modified Thu Jun 18 00:34:29 2009 UTC (5 months ago) by tperciva
Build pp-stripped in the default `make` target (all)

Revision 222 - Directory Listing
Modified Thu Jun 18 00:13:04 2009 UTC (5 months ago) by tperciva
Allow packager to make service installation optional

This changes the default, where on platforms that support it
(Solaris, others?) the user would be prompted whether to install
each service. Services are now installed automatically without
asking unless the packager specifies optional=yes in the spec file.

Inspired by part of QAS r892.

Revision 221 - Directory Listing
Modified Wed Jun 17 23:00:53 2009 UTC (5 months ago) by tperciva
Fix symlink detection on Mac OS

Path to readlink was missing '/'

From QAS r853
Author: Michael Thompson <michael.thompson@quest.com>

Revision 220 - Directory Listing
Modified Wed Jun 17 22:58:27 2009 UTC (5 months ago) by tperciva
Use replacement readlink on IRIX

From QAS r852
Author: Michael Thompson <michael.thompson@quest.com>

Revision 219 - Directory Listing
Modified Wed Jun 17 22:56:33 2009 UTC (5 months ago) by tperciva
Don't abort service creation if init file exists on HPUX

From QAS r847
Author: Michael Thompson <michael.thompson@quest.com>

Revision 218 - Directory Listing
Modified Wed Jun 17 22:53:02 2009 UTC (5 months ago) by tperciva
Fix Tru64 package name

Was "$desc" instead of "$name"

Author: Michael Thompson <michael.thompson@quest.com>
From QAS r845

Revision 217 - Directory Listing
Modified Tue Jun 16 22:17:51 2009 UTC (5 months ago) by tperciva
Implement pp_mkuser on Solaris

Fixes bug #701: Installer does not create the sshd user
  (Quest OpenSSH)

Revision 216 - Directory Listing
Modified Tue Jun 2 20:00:22 2009 UTC (5 months, 2 weeks ago) by tperciva
Build using `rpm` not `rpmbuild` on older systems

eg. SUSE 8.1.

Revision 215 - Directory Listing
Modified Tue Apr 7 00:25:25 2009 UTC (7 months, 2 weeks ago) by tperciva
Fix paths to lsuser and lsgroup on AIX

Verified that lsuser and lsgroup are in /usr/sbin on AIX 4.3 and 5.3

Revision 214 - Directory Listing
Modified Fri Feb 27 18:04:28 2009 UTC (8 months, 3 weeks ago) by tperciva
Change unstripped tarfile name to $name-dbg-$version.tar.gz

Revision 213 - Directory Listing
Modified Fri Feb 27 00:11:42 2009 UTC (8 months, 3 weeks ago) by tperciva
Add option to strip ELF binaries

Unstripped binaries can be separated out into a tarball
with the --save-unstripped option. They are can be drop-in replacements
for binaries in the packages.

One caveat: the binaries in DESTDIR are stripped in-place, so
if the --save-unstripped option is used and polypkg is re-run on the
same DESTDIR, it won't find any unstripped binaries. This can be worked
around be re-running "make install" from the build dir. It could
probably be solved by hardlink farming a copy of the destdir, making a
copy of each unstripped ELF object before stripping it.

Revision 212 - Directory Listing
Modified Fri Feb 13 23:09:36 2009 UTC (9 months, 1 week ago) by tperciva
aix: truncate 5-component versions to 4 components

5-component versions are only valid for partial filesets, not
base filesets (full packages). We only generate base filesets.

An overlong version number will now yield a warning & truncation, rather
than an error.

Revision 211 - Directory Listing
Modified Fri Feb 13 21:15:25 2009 UTC (9 months, 1 week ago) by tperciva
Create working directory in `pwd` instead of /var/tmp (or $TMPDIR)

Avoids filling up tiny /var/tmp partitions, and $TMPDIR is equally
likely to be too small for polypkg to do its work.

Revision 210 - Directory Listing
Modified Thu Feb 12 03:04:38 2009 UTC (9 months, 1 week ago) by dleonard
add new file

Revision 209 - Directory Listing
Modified Thu Feb 12 03:04:17 2009 UTC (9 months, 1 week ago) by dleonard
merge in Seth's latest tru64 changes

Revision 208 - Directory Listing
Modified Wed Feb 11 21:26:56 2009 UTC (9 months, 1 week ago) by dleonard
Tru64 support - experimental, but seems to work

Revision 207 - Directory Listing
Modified Tue Feb 10 19:17:46 2009 UTC (9 months, 1 week ago) by dleonard
Handle SLES-8's lack of readlink

Revision 206 - Directory Listing
Modified Tue Jan 27 19:25:14 2009 UTC (9 months, 3 weeks ago) by tperciva
Don't change relative symlinks to absolute symlinks

There are rumors that one of the packaging systems fails spectacularly
when given a relative symlink, but I checked most of the VAS platforms
(AIX, HP-UX, Irix, Linux [rpm,deb], Mac OS X, Solaris, Tru64) and they
all have relative symlinks in /opt/quest/lib so perhaps it's safe after
all.

Revision 205 - Directory Listing
Modified Mon Dec 15 20:42:02 2008 UTC (11 months ago) by tperciva
remove whitespace from top of file

Revision 204 - Directory Listing
Modified Fri Dec 12 16:27:52 2008 UTC (11 months, 1 week ago) by dleonard
for mac convert old INIT function to new ':depends' style

Revision 203 - Directory Listing
Modified Thu Dec 11 22:30:20 2008 UTC (11 months, 1 week ago) by dleonard
Mac does not support %preun, but just warn now instead of error.
One day OS X may support pre-uninstall scripts... 

Revision 202 - Directory Listing
Modified Fri Oct 31 17:19:23 2008 UTC (12 months, 3 weeks ago) by dleonard
remove warning about %depends.run not found

Revision 201 - Directory Listing
Modified Fri Oct 31 17:05:03 2008 UTC (12 months, 3 weeks ago) by dleonard
add comment about ldd on aix

Revision 200 - Directory Listing
Modified Wed Oct 29 22:27:13 2008 UTC (12 months, 3 weeks ago) by dleonard
detect that hpux-ia64 will run hpux-pa packages

Revision 199 - Directory Listing
Modified Wed Oct 29 16:05:50 2008 UTC (12 months, 3 weeks ago) by dleonard
use 10.5's mkbom if it exists

Revision 198 - Directory Listing
Modified Wed Oct 29 15:57:16 2008 UTC (12 months, 3 weeks ago) by dleonard
Remove use of 10.5 style options so that polypkg works on Mac OS 10.4
On 10.4:
    "pax -f -" will write to a file called "-" instead of stdout
    "mkbom" does not understand "-i" and requires an actual directory of files

Revision 197 - Directory Listing
Modified Thu Oct 23 18:44:02 2008 UTC (12 months, 4 weeks ago) by tperciva
Add link to Debian dependency syntax

Revision 196 - Directory Listing
Modified Thu Oct 23 18:35:15 2008 UTC (12 months, 4 weeks ago) by tperciva
Add %depend processing for deb

Allows specifying explicit package dependencies.

Revision 195 - Directory Listing
Modified Thu Oct 23 16:39:19 2008 UTC (12 months, 4 weeks ago) by dleonard
Don't check /data/rc in the all target since that filesystem is often down in these transition days

Revision 194 - Directory Listing
Modified Thu Oct 23 16:30:24 2008 UTC (12 months, 4 weeks ago) by dleonard
Replace 'pp.ln' with the new PP_DEV_PATH mechanism.

When developing polypkg, it is useful to run the uncommitted version instead
of the pp present in some other project directory. I used to rely on symlinks
into the polypkg src dir, but this breaks when doing a 'make dist', since
the wrong polypkg is installed. So, from now on, I will use an overriding
environment variable ($PP_DEV_PATH) that future pp scripts will honour;
transferring control to the development version instead.

Note that if you plan to use this to wrap polypkg, then your wrapper script
should unset PP_DEV_PATH - otherwise you will get an execution loop.

Revision 193 - Directory Listing
Modified Wed Oct 22 20:13:17 2008 UTC (12 months, 4 weeks ago) by tperciva
Fix calls to undefined function "warn" (should be pp_warn)

Revision 192 - Directory Listing
Modified Tue Oct 21 23:22:35 2008 UTC (13 months ago) by dleonard
correct arch detection on s390x

Revision 191 - Directory Listing
Modified Thu Oct 16 20:19:23 2008 UTC (13 months ago) by dleonard
remove excessive args to useradd on debian

Revision 190 - Directory Listing
Modified Wed Oct 15 23:02:29 2008 UTC (13 months ago) by dleonard
Correct old shell var expansion ${foo+bar} -> ${foo:+bar}, etc.

Revision 189 - Directory Listing
Modified Wed Oct 15 22:57:46 2008 UTC (13 months ago) by dleonard
remove archaic vararg form: ${1+"$@"} -> "$@"  

Revision 188 - Directory Listing
Modified Wed Oct 15 22:52:51 2008 UTC (13 months ago) by dleonard
Unify common functions, implement common functions for macos.

NOTE THAT THE ARGUMENTS TO pp_mkuser have changed!!!
This really should bump the version number.

Revision 187 - Directory Listing
Modified Wed Oct 15 18:44:09 2008 UTC (13 months ago) by dleonard
Separate platform functions out into their own files in preparation for making consistent

Revision 186 - Directory Listing
Modified Wed Oct 15 15:10:27 2008 UTC (13 months ago) by dleonard
Add target for pp.ln

Revision 185 - Directory Listing
Modified Tue Oct 14 22:09:10 2008 UTC (13 months, 1 week ago) by dleonard
Add IRIX inst support (incomplete)

Revision 184 - Directory Listing
Modified Tue Oct 14 22:07:58 2008 UTC (13 months, 1 week ago) by dleonard
Handle AIX6* and also look for ISA hints in the files

Revision 183 - Directory Listing
Modified Tue Oct 14 22:07:09 2008 UTC (13 months, 1 week ago) by dleonard
add platforms function for the null template

Revision 182 - Directory Listing
Modified Tue Oct 14 22:06:37 2008 UTC (13 months, 1 week ago) by dleonard
Add inst for osx

Revision 181 - Directory Listing
Modified Tue Sep 30 01:10:39 2008 UTC (13 months, 3 weeks ago) by tperciva
Find RPMs if they are not in an arch subdir

Fixes bug #586: build would fail because RPM could not be
found on CentOS 5 x86_64.

Revision 180 - Directory Listing
Modified Thu Sep 25 20:51:40 2008 UTC (13 months, 3 weeks ago) by dleonard
fix noarch detection when file omits 'AMD' from x86_64 ELF executable desc.

Revision 179 - Directory Listing
Modified Thu Sep 11 20:54:23 2008 UTC (14 months, 1 week ago) by dleonard
Bug 449: mksys adds -G "" when ${group} not defined (thanks Jason burns)

Revision 178 - Directory Listing
Modified Fri Sep 5 05:14:33 2008 UTC (14 months, 2 weeks ago) by tperciva
Ignore 'alt access mode' (ACL) flag in `ls` output

As seen during packaging on an NFS mount.

Revision 177 - Directory Listing
Modified Thu Jul 24 13:17:43 2008 UTC (15 months, 4 weeks ago) by dleonard
correct pp argument order in example Makefile

Revision 176 - Directory Listing
Modified Thu Jul 24 13:13:53 2008 UTC (15 months, 4 weeks ago) by dleonard
add missing DESTDIR in install

Revision 175 - Directory Listing
Modified Thu Jul 24 13:11:55 2008 UTC (15 months, 4 weeks ago) by dleonard
correct cleanup message

Revision 174 - Directory Listing
Modified Tue Jul 8 05:55:38 2008 UTC (16 months, 2 weeks ago) by dleonard
improve macos: now packages work!

Revision 173 - Directory Listing
Modified Fri Jun 27 13:08:46 2008 UTC (16 months, 3 weeks ago) by dleonard
Add an empty directory to the example

Revision 172 - Directory Listing
Modified Wed Jun 4 01:16:22 2008 UTC (17 months, 2 weeks ago) by tperciva
Print the local and installed pp versions when building
as a hint to `make install` the current version when done

Revision 171 - Directory Listing
Modified Tue Jun 3 03:08:52 2008 UTC (17 months, 2 weeks ago) by dleonard
Simplify/fix how the piddir directory on Solaris is located in the init scripts.
Part of bug 451.

Revision 170 - Directory Listing
Modified Mon Jun 2 13:22:58 2008 UTC (17 months, 2 weeks ago) by dleonard
Don't test ignored files for duplicate mentions

Revision 169 - Directory Listing
Modified Mon Jun 2 13:22:10 2008 UTC (17 months, 2 weeks ago) by dleonard
Detect noarch better when scanning files

Revision 168 - Directory Listing
Modified Mon Jun 2 13:20:14 2008 UTC (17 months, 2 weeks ago) by dleonard
Fix bug where group init.d script would not do group status properly
(On Solaris this time.)

Revision 167 - Directory Listing
Modified Mon Jun 2 13:16:42 2008 UTC (17 months, 2 weeks ago) by dleonard
Fix bug where group init.d script would not do group status properly

Revision 166 - Directory Listing
Modified Mon Jun 2 13:15:18 2008 UTC (17 months, 2 weeks ago) by dleonard
Improve polypkg support for OS X.
Still having problem with file ownership (ie only works if run as root)

Revision 165 - Directory Listing
Modified Tue May 13 02:26:51 2008 UTC (18 months, 1 week ago) by dleonard
bug 451: init scripts place PID files in /tmp if /var/run missing
  This solves a problem on SunOS 2.6 which doesn't have /var/run and
  where an unclean reboot would leave a stale PID file in /var/tmp.
  /tmp/ is chosen because it is cleared on reboot.

Revision 164 - Directory Listing
Modified Tue May 13 02:23:20 2008 UTC (18 months, 1 week ago) by dleonard
Fix --probe option for Fedora 8 and later

Revision 163 - Directory Listing
Modified Tue Feb 5 02:48:26 2008 UTC (21 months, 2 weeks ago) by dleonard
bug 462: Add support for s390/s390x RPM architectures

Revision 162 - Directory Listing
Modified Fri Jan 25 04:40:04 2008 UTC (21 months, 3 weeks ago) by dleonard
Add stoplevels/startlevels control for hpux services

Revision 161 - Directory Listing
Modified Fri Jan 25 04:34:51 2008 UTC (21 months, 3 weeks ago) by dleonard
add x86.rpm into x86_64.rpm list

Revision 160 - Directory Listing
Modified Fri Jan 25 04:31:40 2008 UTC (21 months, 3 weeks ago) by dleonard
remove x86.deb from x86_64 deb equiv list

Revision 159 - Directory Listing
Modified Fri Jan 25 04:28:29 2008 UTC (21 months, 3 weeks ago) by dleonard
update copyright

Revision 158 - Directory Listing
Modified Fri Jan 25 04:25:18 2008 UTC (21 months, 3 weeks ago) by dleonard
add debug to %if; update copyright

Revision 157 - Directory Listing
Modified Tue Jan 8 03:48:28 2008 UTC (22 months, 2 weeks ago) by dleonard
Don't assume that /usr/sbin is in the PATH on aix

Revision 156 - Directory Listing
Modified Mon Jan 7 03:16:48 2008 UTC (22 months, 2 weeks ago) by dleonard
Add --vas-platforms option to pp that emits the compatible VAS platform IDs
Also, add $enable to the service model defaulting to yes, that makes
a service active at boot. (only honoured by rpm & deb for now)

Revision 155 - Directory Listing
Modified Fri Dec 7 07:05:48 2007 UTC (23 months, 2 weeks ago) by tperciva
/etc/group instead of /etc/groups

Revision 154 - Directory Listing
Modified Thu Dec 6 05:59:11 2007 UTC (23 months, 2 weeks ago) by dleonard
part of bug 429: don't use the build host's identifier in the output filename.

Revision 153 - Directory Listing
Modified Thu Dec 6 04:59:47 2007 UTC (23 months, 2 weeks ago) by dleonard
improve the function docs

Revision 152 - Directory Listing
Modified Thu Dec 6 04:58:40 2007 UTC (23 months, 2 weeks ago) by dleonard
on debian, ignore already-removed service links on uninstall

Revision 151 - Directory Listing
Modified Wed Nov 7 05:43:00 2007 UTC (2 years ago) by dleonard
Describe the to-be-implemented %require, %provide and Interface Names sections.

Revision 150 - Directory Listing
Modified Wed Nov 7 01:08:23 2007 UTC (2 years ago) by dleonard
Quote paths more carefully.
Add debugging for pp_files_expand.
Set LS_OPTIONS to --color=never to avoid some craziness.
Mention the setuid/setgid file's mode when we are complaining.

Revision 149 - Directory Listing
Modified Wed Nov 7 01:06:56 2007 UTC (2 years ago) by dleonard
Debian backend changes:
Change default debian maintainer to support@quest.com.
When dpkg/md5sum/fakeroot aren't found on debian, print needed packages.
Don't mark the svc scripts as a conffile so they are deleted on remove.
Remove unused postrm code.

Revision 148 - Directory Listing
Modified Tue Oct 9 05:25:25 2007 UTC (2 years, 1 month ago) by dleonard
Warn when reading from standard input, and it is a terminal.

Revision 147 - Directory Listing
Modified Fri Sep 21 13:36:29 2007 UTC (2 years, 2 months ago) by dleonard
Improvements to pp_mkuser and pp_mkgroup on RPM.
Extra sanity checks. Correct use of shell var syntax.

Revision 146 - Directory Listing
Modified Fri Sep 21 13:35:27 2007 UTC (2 years, 2 months ago) by dleonard
Add (undocumented) --eval option to polypkg.

This option evaluates the shell text in the presence of the
myriad of functions defined inside pp. This will make testing 
of pp easier.

Revision 145 - Directory Listing
Modified Fri Sep 21 13:33:43 2007 UTC (2 years, 2 months ago) by dleonard
When installing a package on red Hat, enable the server without starting it.
This makes installs consistent across systems.

Revision 144 - Directory Listing
Modified Fri Sep 21 13:32:44 2007 UTC (2 years, 2 months ago) by dleonard
Don't die in inst.sh. If there is nothing installed when asked to uninstall

Revision 143 - Directory Listing
Modified Fri Sep 21 13:31:46 2007 UTC (2 years, 2 months ago) by dleonard
Get rid of "tput: not found" warnings on some hosts
Also add a getopt(3) reimpl used when playing with pp_adduser

Revision 142 - Directory Listing
Modified Fri Sep 21 13:30:33 2007 UTC (2 years, 2 months ago) by dleonard
Add useful documentation URL for Solaris SMF 
(for later)

Revision 141 - Directory Listing
Modified Mon Sep 17 02:41:16 2007 UTC (2 years, 2 months ago) by dleonard
bug 393: use full paths to swlist and swpackage (thanks, Seth)

Revision 140 - Directory Listing
Modified Wed Sep 5 04:30:20 2007 UTC (2 years, 2 months ago) by dleonard
quieter install

Revision 139 - Directory Listing
Modified Mon Aug 27 04:12:55 2007 UTC (2 years, 2 months ago) by dleonard
bug 185: improved failure messages on HP-UX when stopping services

Revision 138 - Directory Listing
Modified Mon Aug 20 06:01:45 2007 UTC (2 years, 3 months ago) by tperciva
Fix check for mixed-version packages

Revision 137 - Directory Listing
Modified Mon Aug 20 05:59:58 2007 UTC (2 years, 3 months ago) by tperciva
Support IA-64 for RPM

Revision 136 - Directory Listing
Modified Mon Aug 20 05:30:14 2007 UTC (2 years, 3 months ago) by dleonard
Remove duplicate attempt to set missing rpm description

Revision 135 - Directory Listing
Modified Mon Aug 20 03:52:30 2007 UTC (2 years, 3 months ago) by tperciva
Refuse to install modified or mixed-revision versions to /data/rc/pub

Revision 134 - Directory Listing
Modified Fri Aug 10 02:47:03 2007 UTC (2 years, 3 months ago) by dleonard
correct a bad test

Revision 133 - Directory Listing
Modified Fri Aug 10 00:51:31 2007 UTC (2 years, 3 months ago) by dleonard
Don't use '!' it is not portable shell.

Revision 132 - Directory Listing
Modified Thu Aug 2 04:42:06 2007 UTC (2 years, 3 months ago) by dleonard
fix pp_mkuser and pp_mkgroup for Debian 3.1 and 4.0

Revision 131 - Directory Listing
Modified Wed Aug 1 13:06:57 2007 UTC (2 years, 3 months ago) by dleonard
fix bug where "inst.sh uninstall" would fail if only partially installed

Revision 130 - Directory Listing
Modified Wed Aug 1 13:05:33 2007 UTC (2 years, 3 months ago) by dleonard
Name control scripts uniquely; shutdown services on uninstall.

Revision 129 - Directory Listing
Modified Mon Jul 30 22:37:53 2007 UTC (2 years, 3 months ago) by dleonard
document AIX debugging

Revision 128 - Directory Listing
Modified Mon Jul 30 22:36:59 2007 UTC (2 years, 3 months ago) by dleonard
bug 345: %post and %preun now succeed by default on solaris

Revision 127 - Directory Listing
Modified Tue Jul 3 07:56:51 2007 UTC (2 years, 4 months ago) by tperciva
Fix conffiles

Revision 126 - Directory Listing
Modified Tue Jul 3 07:51:08 2007 UTC (2 years, 4 months ago) by tperciva
Fix conffiles in deb packages

Revision 125 - Directory Listing
Modified Tue Jul 3 07:14:40 2007 UTC (2 years, 4 months ago) by tperciva
Use Debian-style package filenames

Revision 124 - Directory Listing
Modified Fri Jun 8 06:28:57 2007 UTC (2 years, 5 months ago) by dleonard
macos packaging fixes

Revision 123 - Directory Listing
Modified Fri Jun 8 05:14:37 2007 UTC (2 years, 5 months ago) by dleonard
macos backend now builds a dmg, but needs more work

Revision 122 - Directory Listing
Modified Mon May 21 06:10:19 2007 UTC (2 years, 6 months ago) by tperciva
Fix bug #299: fails when umask is restrictive

This only applies to the deb backend

Revision 121 - Directory Listing
Modified Mon May 14 02:14:27 2007 UTC (2 years, 6 months ago) by dleonard
Add OpenSuSE distro detection, per bug 283

Revision 120 - Directory Listing
Modified Mon May 14 02:11:14 2007 UTC (2 years, 6 months ago) by dleonard
bug 283: Use Epoch instead of Serial for RPM. Deprecates $pp_rpm_serial

Revision 119 - Directory Listing
Modified Tue May 8 05:46:08 2007 UTC (2 years, 6 months ago) by dleonard
Handle case where multiple users/groups have same uid/gid. (Ung)
This happens on sol8 when uid(root) == uid(rootksh)

Revision 118 - Directory Listing
Modified Tue May 8 05:42:08 2007 UTC (2 years, 6 months ago) by dleonard
Fix the same problem as given in r98, but for groups. (Sol8 awk is broken)

Revision 117 - Directory Listing
Modified Wed Apr 11 07:04:24 2007 UTC (2 years, 7 months ago) by tperciva
Correctly parse Debian version numbers with revisions when probing
The revision is ignored

Revision 116 - Directory Listing
Modified Wed Apr 11 04:24:03 2007 UTC (2 years, 7 months ago) by dleonard
bug 253: move solaris pid files into /var/run when possible

Revision 115 - Directory Listing
Modified Tue Apr 10 01:39:55 2007 UTC (2 years, 7 months ago) by dleonard
set default CATEGORY properly on solaris

Revision 114 - Directory Listing
Modified Tue Apr 10 01:38:35 2007 UTC (2 years, 7 months ago) by dleonard
fix incorrect warning about invalid symlink modes

Revision 113 - Directory Listing
Modified Tue Apr 3 07:20:36 2007 UTC (2 years, 7 months ago) by tperciva
Find lsb_release in $PATH

lsb_release is in /usr/bin on Debian.[1] It was previously executing
/bin/lsb_release so I assume that's where it is on Ubuntu.

[1] As of lsb-release 3.1-23.1

Revision 112 - Directory Listing
Modified Tue Mar 27 04:30:09 2007 UTC (2 years, 7 months ago) by dleonard
Fix installer, error handling, required program checks; other tidying

Revision 111 - Directory Listing
Modified Thu Mar 22 23:28:51 2007 UTC (2 years, 8 months ago) by dleonard
Implement the --only-front option which is used for testing.

Revision 110 - Directory Listing
Modified Tue Mar 20 08:24:48 2007 UTC (2 years, 8 months ago) by dpovey
The auto detection of architecture in the RPM backend was not finding 
shared objects and as such would mark such packages as noarch.  Fixed
this by making the check for files a little bit more liberal so it will
match shared objects, relocatable objects etc as well as executables.

Revision 109 - Directory Listing
Modified Tue Feb 27 05:15:59 2007 UTC (2 years, 8 months ago) by dleonard
fix groupadd, useradd, file ownership, #! headers being stripped

Tested this with the openssh distribution on debian and it seems to work ok!

Revision 108 - Directory Listing
Modified Tue Feb 27 04:16:55 2007 UTC (2 years, 8 months ago) by dpovey
- Added install script generation
- Refactoring so we now generate different packages for the run/dev/doc/dbg components

We'll call this v1.0 now.

Revision 107 - Directory Listing
Modified Tue Feb 27 02:42:45 2007 UTC (2 years, 8 months ago) by dpovey
- Add support for services. 
- Refactor some stuff so that we build with dpkg-deb rather than doing ar hackery

Revision 106 - Directory Listing
Modified Mon Feb 26 23:44:28 2007 UTC (2 years, 8 months ago) by dpovey
Do symlinks a more sensible way (ie. in the data.tar.gz rather as a postinstall
step).

Revision 105 - Directory Listing
Modified Mon Feb 26 08:10:41 2007 UTC (2 years, 8 months ago) by dpovey
Made inroads on the Debian template to get this mostly working.  A couple of rough edges to iron out (no service stuff, or install).
But builds an installable package.

Revision 104 - Directory Listing
Modified Mon Feb 26 03:04:07 2007 UTC (2 years, 8 months ago) by dleonard
update copyright year; comments

Revision 103 - Directory Listing
Modified Thu Feb 8 11:32:28 2007 UTC (2 years, 9 months ago) by dleonard
clarify how CATEGORY is derived, correct comment

Revision 102 - Directory Listing
Modified Thu Feb 8 11:31:54 2007 UTC (2 years, 9 months ago) by dleonard
incomplete/experimental support for macosx

Revision 101 - Directory Listing
Modified Thu Feb 8 11:29:56 2007 UTC (2 years, 9 months ago) by dleonard
bug 199: typo in solaris group service script

Revision 100 - Directory Listing
Modified Mon Feb 5 04:30:41 2007 UTC (2 years, 9 months ago) by dleonard
correct bad function name in sample file

Revision 99 - Directory Listing
Modified Mon Feb 5 04:21:11 2007 UTC (2 years, 9 months ago) by dleonard
Add virtual service groups and a 'print-platform' helper function

Revision 98 - Directory Listing
Modified Mon Jan 22 03:40:45 2007 UTC (2 years, 10 months ago) by dleonard
Make uid->username mapping more robust on Solaris.

It appears that an awk program on solaris 10 of this form:

   /pattern/ { exit 0; } END { exit 1; }

will always exit 1.


Revision 97 - Directory Listing
Modified Fri Jan 12 02:26:43 2007 UTC (2 years, 10 months ago) by tperciva
Remove periods from version numbers in deb platform name

Revision 96 - Directory Listing
Modified Fri Jan 12 02:21:27 2007 UTC (2 years, 10 months ago) by tperciva
Implement .deb backend probe function, and add deb backend to pp
The deb backend is unfinished, but being able to use --probe is useful

Revision 95 - Directory Listing
Modified Wed Dec 20 03:23:41 2006 UTC (2 years, 11 months ago) by dleonard
make --probe work on Whitebox linux

Revision 94 - Directory Listing
Modified Wed Dec 20 01:42:14 2006 UTC (2 years, 11 months ago) by dleonard
Mention link to the web site

Revision 93 - Directory Listing
Modified Tue Dec 19 04:06:07 2006 UTC (2 years, 11 months ago) by dleonard
Uniformly init service script vars; detect platform arch for solaris and linux.

Fixing the init service script vars will make init scripts work on suse again.

Making linux and solaris detect the platform architecture allows us to build
32-bit packages on sparc64 or ppc64 hosts (otherwise the platform is
detected by a probe and the package is incorrectly marked as 64-bit)

Revision 92 - Directory Listing
Modified Tue Dec 19 04:04:00 2006 UTC (2 years, 11 months ago) by dleonard
don't use colours if TERM is not defined

Revision 91 - Directory Listing
Modified Thu Nov 30 13:37:26 2006 UTC (2 years, 11 months ago) by dleonard
don't assume /usr/sbin is in the path

Revision 90 - Directory Listing
Modified Tue Nov 28 12:48:12 2006 UTC (2 years, 11 months ago) by dleonard
Add --probe option that prints the local platform identifier

Revision 89 - Directory Listing
Modified Tue Nov 28 11:39:14 2006 UTC (2 years, 11 months ago) by dleonard
Add pp_solaris_add_dynlib_depends() function for generating dynamic dependencies for shared libraries

Revision 88 - Directory Listing
Modified Wed Nov 15 13:26:18 2006 UTC (3 years ago) by dleonard
typeset is not understood by the solaris shell

Revision 87 - Directory Listing
Modified Mon Oct 23 12:37:13 2006 UTC (3 years ago) by dleonard
%post, %preun, %check scripts to exit 0 by default.

Explanation: The normal behaviour of shell is to exit with the exit code 
of the last-run command.  Sometimes this means the last 'if' condition, 
or a '&&' conjunction can unintentionally abort an install. This change
effectively adds an 'exit 0' to the end of most scripts. To raise a failure,
scripts must now explicitly call 'exit 1'. This will terminate the 
installation process on most platforms.


Revision 86 - Directory Listing
Modified Thu Oct 19 12:08:57 2006 UTC (3 years, 1 month ago) by davidl
show usage when AIX inst helper run with no arguments

Revision 85 - Directory Listing
Modified Thu Oct 19 12:06:38 2006 UTC (3 years, 1 month ago) by davidl
better warnings for overlong solaris package names

Revision 84 - Directory Listing
Modified Tue Oct 17 03:10:13 2006 UTC (3 years, 1 month ago) by davidl
Convert numeric uids and gids to local user and group names

Revision 83 - Directory Listing
Modified Tue Oct 17 02:35:30 2006 UTC (3 years, 1 month ago) by davidl
Allow shell variables to expand in file mode, owner and group

Revision 82 - Directory Listing
Modified Tue Oct 17 01:40:16 2006 UTC (3 years, 1 month ago) by davidl
improve platform detection debugging

Revision 81 - Directory Listing
Modified Tue Oct 17 01:34:23 2006 UTC (3 years, 1 month ago) by davidl
it is now an error if setuid/setgid programs are not given explicit user/group owners

Revision 80 - Directory Listing
Modified Tue Oct 17 01:33:46 2006 UTC (3 years, 1 month ago) by davidl
Move spec file debugging to after %fixup (my fixup scripts modify the specfile)

Revision 79 - Directory Listing
Modified Tue Oct 17 01:33:11 2006 UTC (3 years, 1 month ago) by davidl
use the PP_NO_CLEAN and PP_DEBUG environment variables to set option defaults

Revision 78 - Directory Listing
Modified Thu Oct 12 04:31:46 2006 UTC (3 years, 1 month ago) by davidl
detect solaris architecture more accurately

Revision 77 - Directory Listing
Modified Thu Oct 12 01:11:52 2006 UTC (3 years, 1 month ago) by davidl
bug 91: always run the %post/%pre sections

Revision 76 - Directory Listing
Modified Tue Oct 10 12:15:27 2006 UTC (3 years, 1 month ago) by davidl
Fix bug where hpux init symlinks would have wrong priority links

Revision 75 - Directory Listing
Modified Tue Oct 10 11:15:38 2006 UTC (3 years, 1 month ago) by davidl
some debian initial work I had lying about

Revision 74 - Directory Listing
Modified Tue Oct 10 11:13:51 2006 UTC (3 years, 1 month ago) by davidl
readlink is very unreliable on solaris

Revision 73 - Directory Listing
Modified Mon Oct 9 05:06:54 2006 UTC (3 years, 1 month ago) by davidl
some documentation corrections

Revision 72 - Directory Listing
Modified Mon Oct 9 05:06:35 2006 UTC (3 years, 1 month ago) by davidl
correct function name

Revision 71 - Directory Listing
Modified Thu Sep 21 08:50:36 2006 UTC (3 years, 2 months ago) by davidl
correct variable name

Revision 70 - Directory Listing
Modified Thu Sep 21 05:56:19 2006 UTC (3 years, 2 months ago) by davidl
Add -q option to the helper scripts

Revision 69 - Directory Listing
Modified Thu Sep 21 05:54:57 2006 UTC (3 years, 2 months ago) by davidl
fix service starting when user is not root

Revision 68 - Directory Listing
Modified Thu Sep 21 05:54:31 2006 UTC (3 years, 2 months ago) by davidl
Add pp.quest

Revision 67 - Directory Listing
Modified Thu Sep 21 05:54:18 2006 UTC (3 years, 2 months ago) by davidl
Fix bug where empty root components would stop pre/post/check scripts running
Some extra cleanup occurred while debugging this

Revision 66 - Directory Listing
Modified Thu Sep 21 05:53:37 2006 UTC (3 years, 2 months ago) by davidl
quest_require_vas: quest-specific version checking code

Revision 65 - Directory Listing
Modified Thu Sep 21 03:32:37 2006 UTC (3 years, 2 months ago) by davidl
improve error messages from install helper script

Revision 64 - Directory Listing
Modified Thu Sep 21 02:48:49 2006 UTC (3 years, 2 months ago) by davidl
allow upgrades with solaris install helper script

Revision 63 - Directory Listing
Modified Thu Sep 21 02:47:55 2006 UTC (3 years, 2 months ago) by davidl
solaris stores pidfiles in /var/tmp, not /var/run

Revision 62 - Directory Listing
Modified Thu Sep 21 02:39:30 2006 UTC (3 years, 2 months ago) by davidl
fix problem with stop scripts on hpux

Revision 61 - Directory Listing
Modified Thu Sep 21 02:38:58 2006 UTC (3 years, 2 months ago) by davidl
Strip alpha from AIX version numbers; add -F option to install to force upgrades

Revision 60 - Directory Listing
Modified Thu Sep 21 02:18:42 2006 UTC (3 years, 2 months ago) by davidl
improve help message

Revision 59 - Directory Listing
Modified Thu Sep 21 02:18:30 2006 UTC (3 years, 2 months ago) by davidl
Document the helper script generated by --install-script

Revision 58 - Directory Listing
Modified Thu Sep 21 02:18:12 2006 UTC (3 years, 2 months ago) by davidl
fix problem generating %pre rpm sections from %check sections

Revision 57 - Directory Listing
Modified Tue Sep 19 05:28:03 2006 UTC (3 years, 2 months ago) by davidl
complete support for %check section

Revision 56 - Directory Listing
Modified Tue Sep 19 05:16:40 2006 UTC (3 years, 2 months ago) by davidl
pp_function/pp_functions: emits platform-dependent shell function

Revision 55 - Directory Listing
Modified Tue Sep 19 05:15:41 2006 UTC (3 years, 2 months ago) by davidl
tags depends on source files

Revision 54 - Directory Listing
Modified Tue Sep 19 05:15:24 2006 UTC (3 years, 2 months ago) by davidl
bug: avoid aix shell bug where  is mis-processed

Revision 53 - Directory Listing
Modified Tue Sep 19 05:14:24 2006 UTC (3 years, 2 months ago) by davidl
fix: detection of --destdir was wrong
fix: symlinks in the root subset were not being copied correctly
fix: setuid executables were generating wrong mode string
support %check files
move mkuser/mkgroup code into the pp_backend_aix_function()

Revision 52 - Directory Listing
Modified Tue Sep 19 05:11:23 2006 UTC (3 years, 2 months ago) by davidl
improve documentation

Revision 51 - Directory Listing
Modified Thu Sep 14 18:24:27 2006 UTC (3 years, 2 months ago) by davidl
use tabs in front of %sections

Revision 50 - Directory Listing
Modified Thu Sep 14 16:25:14 2006 UTC (3 years, 2 months ago) by davidl
stricter on leading whitespace; use read -r

Revision 49 - Directory Listing
Modified Thu Sep 14 16:24:46 2006 UTC (3 years, 2 months ago) by davidl
allow alternate shells when testing

Revision 48 - Directory Listing
Modified Mon Aug 7 03:37:57 2006 UTC (3 years, 3 months ago) by davidl
improved warning message for sol26

Revision 47 - Directory Listing
Modified Mon Aug 7 03:30:16 2006 UTC (3 years, 3 months ago) by davidl
catch Solaris 2.6 names; fix tests to run on sol2.6 sh

Revision 46 - Directory Listing
Modified Fri Aug 4 14:57:48 2006 UTC (3 years, 3 months ago) by davidl
detect OSS SuSE properly

Revision 45 - Directory Listing
Modified Fri Aug 4 11:09:08 2006 UTC (3 years, 3 months ago) by davidl
rpm list-files should take args

Revision 44 - Directory Listing
Modified Fri Aug 4 09:51:57 2006 UTC (3 years, 3 months ago) by davidl
various fixes
- correct missing description text on hpux
- add install script for hpux
- add 'list-files' command for the install helper script
- install helper script understands $PP_PKGDESTDIR env var
- fix problem with %{..} substitution on hpux (sed doesn't grok \n)
- fix bug where the special filename - wasn't being recognised
- add tests to make sure backslashes in sections work

Revision 43 - Directory Listing
Modified Fri Aug 4 06:29:28 2006 UTC (3 years, 3 months ago) by davidl
install script for solaris

Revision 42 - Directory Listing
Modified Fri Aug 4 06:14:46 2006 UTC (3 years, 3 months ago) by davidl
rpm install script and tests

Revision 41 - Directory Listing
Modified Fri Aug 4 04:50:34 2006 UTC (3 years, 3 months ago) by davidl
add an --install-script option to simplify testing

Revision 40 - Directory Listing
Modified Thu Aug 3 16:58:41 2006 UTC (3 years, 3 months ago) by davidl
copy packages to $PP_PKGDESTDIR

Revision 39 - Directory Listing
Modified Thu Aug 3 16:42:06 2006 UTC (3 years, 3 months ago) by davidl
Insert build platform distro into package name

Revision 38 - Directory Listing
Modified Thu Aug 3 16:08:04 2006 UTC (3 years, 3 months ago) by davidl
add distro name into release field by default

Revision 37 - Directory Listing
Modified Thu Aug 3 05:58:35 2006 UTC (3 years, 3 months ago) by davidl
fix brain-death with solaris sed

Revision 36 - Directory Listing
Modified Thu Aug 3 05:29:27 2006 UTC (3 years, 3 months ago) by davidl
readlink is not always available; add test code

Revision 35 - Directory Listing
Modified Thu Aug 3 05:27:55 2006 UTC (3 years, 3 months ago) by davidl
add OS info into the package name on solaris

Revision 34 - Directory Listing
Modified Thu Aug 3 05:27:12 2006 UTC (3 years, 3 months ago) by davidl
improve service support on HPUX

Revision 33 - Directory Listing
Modified Mon Jul 31 04:47:27 2006 UTC (3 years, 3 months ago) by davidl
missing test

Revision 32 - Directory Listing
Modified Mon Jul 31 04:45:10 2006 UTC (3 years, 3 months ago) by davidl
Add init script links, and a config.d file.
The config.d file aggregates startup controls.
Services currently default to starting up.

Revision 31 - Directory Listing
Modified Mon Jul 31 04:43:47 2006 UTC (3 years, 3 months ago) by davidl
New default variables: $pp_rpm_serial, $pp_rpm_release.

Revision 30 - Directory Listing
Modified Thu Jul 27 12:23:06 2006 UTC (3 years, 3 months ago) by davidl
remove += needed on hpux for some reason?

Revision 29 - Directory Listing
Modified Thu Jul 27 12:22:33 2006 UTC (3 years, 3 months ago) by davidl
Correct version number handling; fix debug tests

Revision 28 - Directory Listing
Modified Thu Jul 27 12:22:04 2006 UTC (3 years, 3 months ago) by davidl
new variable 

Revision 27 - Directory Listing
Modified Thu Jul 27 12:21:24 2006 UTC (3 years, 3 months ago) by davidl
fix comments

Revision 26 - Directory Listing
Modified Thu Jul 27 12:21:01 2006 UTC (3 years, 3 months ago) by davidl
HPUX backend (incomplete)

Revision 25 - Directory Listing
Modified Wed Jul 26 13:21:17 2006 UTC (3 years, 3 months ago) by davidl
missing backslash in usage

Revision 24 - Directory Listing
Modified Wed Jul 26 13:06:46 2006 UTC (3 years, 3 months ago) by davidl
correct usage

Revision 23 - Directory Listing
Modified Wed Jul 26 03:09:23 2006 UTC (3 years, 3 months ago) by davidl
force root:root as the default owner:group for RPM packages

Revision 22 - Directory Listing
Modified Tue Jul 25 00:24:51 2006 UTC (3 years, 3 months ago) by davidl
correct line numbers; implement %pp

Revision 21 - Directory Listing
Modified Tue Jul 25 00:24:38 2006 UTC (3 years, 3 months ago) by davidl
hide kill errors when testing a process is running

Revision 20 - Directory Listing
Modified Tue Jul 25 00:24:15 2006 UTC (3 years, 3 months ago) by davidl
merge dependencies for solaris

Revision 19 - Directory Listing
Modified Tue Jul 25 00:22:18 2006 UTC (3 years, 3 months ago) by davidl
don't strip the licence out

Revision 18 - Directory Listing
Modified Tue Jul 25 00:12:58 2006 UTC (3 years, 3 months ago) by davidl
make owner/group parts of the owner:group arg truly optional

Revision 17 - Directory Listing
Modified Tue Jul 25 00:10:26 2006 UTC (3 years, 3 months ago) by davidl
provide status arg for solaris init.d scripts; remove debug

Revision 16 - Directory Listing
Modified Fri Jul 21 06:18:21 2006 UTC (3 years, 4 months ago) by davidl
Move common initilisation into a function; factor out new file recording.

Revision 15 - Directory Listing
Modified Fri Jul 21 06:17:19 2006 UTC (3 years, 4 months ago) by davidl
fix bug where multiple services weren't installing for solaris

Revision 14 - Directory Listing
Modified Wed Jul 19 10:28:02 2006 UTC (3 years, 4 months ago) by davidl
stub for debian backend

Revision 13 - Directory Listing
Modified Wed Jul 19 10:27:47 2006 UTC (3 years, 4 months ago) by davidl
add section qualifiers

Revision 12 - Directory Listing
Modified Tue Jul 18 19:08:03 2006 UTC (3 years, 4 months ago) by davidl
correct service uninstall on redhat with lsb anti-detection

Revision 11 - Directory Listing
Modified Tue Jul 18 18:55:59 2006 UTC (3 years, 4 months ago) by davidl
cope with duplicate files; rpm service fixes

Revision 10 - Directory Listing
Modified Tue Jul 18 17:02:21 2006 UTC (3 years, 4 months ago) by davidl
add licence

Revision 9 - Directory Listing
Modified Tue Jul 18 17:02:12 2006 UTC (3 years, 4 months ago) by davidl
add licence

Revision 8 - Directory Listing
Modified Tue Jul 18 16:45:55 2006 UTC (3 years, 4 months ago) by davidl
improve dependency and symlink handling

Revision 7 - Directory Listing
Modified Mon Jul 17 18:05:45 2006 UTC (3 years, 4 months ago) by davidl
pp generates the unpackaged file warnings, not rpm

Revision 6 - Directory Listing
Modified Mon Jul 17 17:38:41 2006 UTC (3 years, 4 months ago) by davidl
support for ** expansion; misc fixes

Revision 5 - Directory Listing
Modified Mon Jul 17 16:13:57 2006 UTC (3 years, 4 months ago) by davidl
versioning

Revision 4 - Directory Listing
Modified Mon Jul 17 16:05:16 2006 UTC (3 years, 4 months ago) by davidl
aix fixes; better transient file cleanup

Revision 3 - Directory Listing
Modified Mon Jul 17 15:20:06 2006 UTC (3 years, 4 months ago) by davidl
add service backend for solaris

Revision 2 - Directory Listing
Modified Mon Jul 17 15:17:56 2006 UTC (3 years, 4 months ago) by davidl
solaris and service improvements

Revision 1 - Directory Listing
Added Mon Jul 17 01:55:43 2006 UTC (3 years, 4 months ago) by davidl
Import current polypkg sources into SVN

Ted.Percival@quest.com
ViewVC Help
Powered by ViewVC 1.1.2