Custom PSTAMP format
Add support for a space file Don't compress manpages on Solaris since it won't know what to do with them
This commit is contained in:
parent
d4accdc00b
commit
f0079c1084
@ -39,10 +39,11 @@ pkginfo=$buildpkgbase/scripts/pkginfo.in
|
||||
# Variables that control functionality
|
||||
usedepend=1 # default to looking for a depend file in $metadir
|
||||
usescripts=1 # default to add pre/post scripts if available
|
||||
usespace=1 # default to looking for a space file in $metadir
|
||||
ignore_unpackaged_files=0 # default to check for unpackaged files in the stage area
|
||||
|
||||
# Compress raw manpages...
|
||||
gzman=1
|
||||
# Solaris doesn't know how to handle any kind of compressed manpages
|
||||
gzman=0
|
||||
|
||||
# Host specific configuration
|
||||
[ -r $buildpkgbase/scripts/config.`hostname`.solaris ] && . $buildpkgbase/scripts/config.`hostname`.solaris
|
||||
@ -92,6 +93,8 @@ pack_info()
|
||||
fi
|
||||
local secname=$1
|
||||
|
||||
pstamp="$os-$($UNAME -n)`date '+%Y%m%d%H%M'`"
|
||||
|
||||
$SED -e "s#%%pkgname%%#$pkgname#g" \
|
||||
-e "s#%%version%%#$version#g" \
|
||||
-e "s#%%pkgcat%%#$pkgcat#g" \
|
||||
@ -100,6 +103,7 @@ pack_info()
|
||||
-e "s#%%name%%#$name#g" \
|
||||
-e "s#%%topinstalldir%%#$topinstalldir#g" \
|
||||
-e "s#%%pkgdesc%%#$pkgdesc#g" \
|
||||
-e "s#%%pstamp%%#$pstamp#g" \
|
||||
$pkginfo > $metadir/pkginfo.$secname
|
||||
}
|
||||
|
||||
@ -145,6 +149,9 @@ add_scripts()
|
||||
# If a dependency file is available then use it
|
||||
[ -r $metadir/depend.$secname -a $usedepend -eq 1 ] && add_meta_file depend "$metadir/depend.$secname" $secname
|
||||
|
||||
# If a space file is available then use it
|
||||
[ -r $metadir/space.$secname -a $usespace -eq 1 ] && add_meta_file space "$metadir/space.$secname" $secname
|
||||
|
||||
if [ $usescripts -eq 1 ]; then
|
||||
[ -r $metadir/preinstall.$secname ] && add_meta_file preinstall "$metadir/preinstall.$secname" $secname
|
||||
[ -r $metadir/postinstall.$secname ] && add_meta_file postinstall "$metadir/postinstall.$secname" $secname
|
||||
|
@ -5,6 +5,7 @@ VERSION="%%version%%,REV=%%pkgver%%"
|
||||
CATEGORY="%%pkgcat%%"
|
||||
VENDOR="%%pkgvendor%% - packaged by Tom G. Christensen"
|
||||
EMAIL="swpkg@statsbiblioteket.dk"
|
||||
PSTAMP="%%pstamp%%"
|
||||
BASEDIR="%%topinstalldir%%"
|
||||
CLASSES="none"
|
||||
DESC="%%pkgdesc%%"
|
||||
|
Loading…
x
Reference in New Issue
Block a user