58 Commits

Author SHA1 Message Date
Tom G. Christensen
5c4973f9c8 Add head to the list of tools. 2009-12-19 14:38:44 +01:00
Tom G. Christensen
c786941496 Import the ac_overrides codes from Irix into the generic build function. 2009-12-19 14:38:44 +01:00
Tom G. Christensen
bb2413eda9 Add generic_check function and add new default check target to build.sh.
The check target is excluded from the all target since it can often take a
very long time to run.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
c06bf89a46 auto_deps needs ldd 2009-12-19 14:38:43 +01:00
Tom G. Christensen
ac054594dc Enforce length limits on PKG and NAME fields in pkginfo 2009-12-19 14:38:43 +01:00
Tom G. Christensen
951d5ac6de Make it possible to override configure by defining __configure 2009-12-19 14:38:43 +01:00
Tom G. Christensen
48a08220e2 Add new __ prefixed tool namespace 2009-12-19 14:38:43 +01:00
Tom G. Christensen
f5e5e26d49 Add support for pack(1)ed manpages on Irix 5.3 2009-12-19 14:38:43 +01:00
Tom G. Christensen
83fa1c28f0 Make the default patch prefix configurable. 2009-12-19 14:38:42 +01:00
Tom G. Christensen
b28cc5d0eb Correct the extraction of the .so link target when symlinking manpages 2009-12-19 14:38:42 +01:00
Tom G. Christensen
584d7de232 Add function to convert .so style manpage linking to symlinks 2009-12-19 14:38:42 +01:00
Tom G. Christensen
70f85ffe32 New functions to aid in the building of perl module packages 2009-12-19 14:38:42 +01:00
Tom G. Christensen
c58a2bad9c Add EGREP
Allow overriding the makefile build target to use
Allow skipping the configure step in generic_build
2009-12-19 14:38:42 +01:00
Tom G. Christensen
311bbb03f0 Implement support for platform specific configure function run_configure.
Add error message for suspicious config.log entries
A few variables in compute_octal was defined as globals
2009-12-19 14:38:42 +01:00
Tom G. Christensen
f29c27d4d9 Switch to /usr/tgcware 2009-12-19 14:38:42 +01:00
Tom G. Christensen
96b3f64f74 Add support for unpacking zip archives 2009-12-19 14:38:42 +01:00
Tom G. Christensen
274321e7fe Make generic_build and generic_install able to descend into a subdir
inside the sourcedir before doing their thing.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
1719dd0aae Add explicit command var for GNU sed
Add _vdocdir helper var which points to the fully expanded location of
documentation
Fix ugly file not found output from ls
2009-12-19 14:38:41 +01:00
Tom G. Christensen
bb3184f703 Add SHA1SUM command
Change charset for manpages to ascii
2009-12-19 14:38:41 +01:00
Tom G. Christensen
1a45efd94a Add "autonuke" function to automatically cleanout unwanted files from the
stagedir after install
2009-12-19 14:38:41 +01:00
Tom G. Christensen
5e5291c3fc Allow manpages to be compressed with compress(1) instead of gzip.
This is useful for plain old Irix 5.3 which doesn't understand gzipped
manpages.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
6776f58c74 Move shortroot handling to the install stage. Automatically adding
$prefix inside the stagedir when necessary.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
f44a2f526a Fix a stupid typo and convert mkdir to ${MKDIR} 2009-12-19 14:38:41 +01:00
Tom G. Christensen
abe8d6774e _docdir is an external variable used in build.sh and pkgdef so changing
it halfway through is very bad. Fixed.
This frequently caused ./build.sh install pack to break because _docdir
is redefined between the 2 steps.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
88847c7058 Add RMDIR
Add new error message that will be trigged by an overflow of the version
number in fix_ver (buildpkg.packaging.irix)
Add a small Irix specific hack to clean (see the commit comment for
buildpkg.packaging.irix, r1.32 for the full explanation)
2009-12-19 14:38:41 +01:00
Tom G. Christensen
c050cce4ec compress infopages
Fix manpage formatting to use a simpler commandline
2009-12-19 14:38:41 +01:00
Tom G. Christensen
36e25bc278 Do the right thing if someone deleted pkginfo.$secname instead
of rm -rf'ing the package dir.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
d4accdc00b Move package revision into the version field using the standard ,REV=
notation.
Seperate formatting of manpages and compression of manpages.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
de2bd7d63b - Support 'dir' command in pkgdef
- New metainstalldir for when topdir needs to be / (like prngd, openssh)
- Allow make install to be skipped in generic_install
2009-12-19 14:38:40 +01:00
Tom G. Christensen
59657a656e We don't need CMP anymore.
Native Irix ln doesn't know about -n
2009-12-19 14:38:40 +01:00
Tom G. Christensen
87ae9aa1ff We don't need DIFF anymore.
Added new LN and PRINTF commands.
Replaced ln with $LN
Avoid namespace pollution in fix_man() by declaring all internal variables
local.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
ec325c188b Redefine the meaning of the topdir variable.
From now on pkgdir will be used to designate the toplevel dir of the pkg
under $BUILDPKG_BASE

Irix specific changes:
Source formatting fixes
Finally get rid of the FIXME on imageconf
Automatically handle opt.src and opt.relnotes subsystems
2009-12-19 14:38:40 +01:00
Tom G. Christensen
2ff1b5e084 Split strip function into system specific subfunctions.
After the rewrite of add_files in the Irix function library permissions
where not assigned correctly. This has been fixed.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
6ca155d0c4 Small fix for strip function.
It may or may not work on Irix. It depends on what /usr/bin/file returns
on Irix.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
3faeac8b79 Made the strip function more intelligent by ripping the brp-strip-*
scripts from RPM.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
c6b27e50fe Make doc function handle parameters with wildcards in them.
Using tar the way it's currently done is kinda ugly...
Fix _docdir default location to $prefix/share/doc instead of $prefix/doc
2009-12-19 14:38:40 +01:00
Tom G. Christensen
6d88b4bd9e Make check_unpackaged list the diff so one can actually see what's
missing :)
2009-12-19 14:35:08 +01:00
Tom G. Christensen
938abe7cd9 Missing $_<dir> helper var 2009-12-19 14:35:08 +01:00
Tom G. Christensen
552b58c24a Handle multiple packages correctly in clean meta 2009-12-19 14:35:08 +01:00
Tom G. Christensen
5812871885 Make default ./configure args configurable.
Add another command
2009-12-19 14:35:07 +01:00
Tom G. Christensen
96dd8f0a90 Add an _os variable than can be used for conditionals in build.sh scripts 2009-12-19 14:35:07 +01:00
Tom G. Christensen
1419d92967 compute_octal from buildpkg.packaging.irix was moved here
Extra helper progs and variables needed to support the new functionality
in buildpkg.packaging.solaris was added.
Note that some stuff now has a _ prefix. This is just the beginning
of a major namespace cleanup.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
4db33ad718 Add a doc function to automate the copying of docs from srcdir to a
predefined location.
Add shortroot modifier variable to replace passing the shortroot argument
to generic_pack.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
56201570f9 Two more helpers
In the next major revision all helpers should probably be updated to use _
prefix to they don't conflict with configure etc.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
c415821025 fix_man now properly handles manpages with embedded spaces in the name
Symlinks are now retargetet.
manpage RM moved to be pr. manpage, this fixes the race? condition I was
seeing on Irix 5.3 with GNU rm.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
a0a12ecd2c Irix 5.3 took exception to rm -rf'ing the directory directly
This seems to work around it.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
1d65a34609 Added a var to control symbol stripping during the installstage
Changed default dir for new packages to distfiles/beta
2003-09-12 11:06:27 +00:00
Tom G. Christensen
5acdf80b84 Added fix_man. A function to create preformatted manpages from the raw ones 2003-08-03 20:20:44 +00:00
Tom G. Christensen
a1980fc242 Updated to use an environmentvar (BUILDPKG_BASE) to locate the buildpkg root 2003-07-29 19:25:49 +00:00
Tom G. Christensen
aae87e44a6 The slimmed down version with all the packaging specfic parts pulled out.
This is slated to become buildpkg-1_5_0 once it's gotten some testing.
2003-07-25 15:53:59 +00:00