88 Commits

Author SHA1 Message Date
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
Tom G. Christensen
2c6a932f12 Change default parameters for ./configure 2003-07-25 15:35:49 +00:00
Tom G. Christensen
641026ae54 Add an extra var to control patchfile location. This was a must after packing vim.
Vim provides updates to major release through source patches, we don't want those in src/
since we didn't create them. With patchdir we can easily control where patches should be located.
Made clean() tell what it does.
2003-07-10 09:07:10 +00:00
Tom G. Christensen
8f8403eebb Added a function to add file entries to a prototype file - for now it's unused
Added the extra substitutions in the pkginfo file to pack_info also made sure all
the necessary variables are defined with a legal value.
2003-07-08 10:48:03 +00:00
Tom G. Christensen
8a2bd4a614 Misc fixes and a few additional features added
Moved all helper functions in front of the generic ones
2003-07-07 13:44:19 +00:00
Tom G. Christensen
330098fd82 The first incarnation is now more or less done.
It's been tested with libao and it works correctly.
2003-07-07 11:19:32 +00:00
Tom G. Christensen
074971bbbc Things are coming along nicely
I've added more helper functions to make it easier to override the functionality of the generic_*
functions. Breaking them down into smaller functions should make it easier to just replace a part of them
in the pr. package script.
2003-07-02 08:22:56 +00:00
Tom G. Christensen
cff842efd5 generic_prep seems to be working now
patch and unpack functions have not been thoroughly tested though :)
2003-06-30 14:20:19 +00:00
Tom G. Christensen
a7a7168953 My own package build system :)
This is the first attempt and it's not finished
2003-06-30 09:47:31 +00:00