Compare commits
10 Commits
6d8afb783d
...
78e516ad61
Author | SHA1 | Date | |
---|---|---|---|
|
78e516ad61 | ||
|
3cd10f85d4 | ||
|
7eb78af9ae | ||
|
d38443871c | ||
|
fe7f6cb97e | ||
|
f95e226c80 | ||
|
27e745bc1c | ||
|
6e408949ea | ||
|
6620dc6854 | ||
|
6750c1f90d |
8
COPYING
8
COPYING
@ -1,7 +1,7 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 3, 29 June 2007
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
|
|||||||
You should also get your employer (if you work as a programmer) or school,
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
For more information on this, and how to apply and follow the GNU GPL, see
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
<http://www.gnu.org/licenses/>.
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
The GNU General Public License does not permit incorporating your program
|
The GNU General Public License does not permit incorporating your program
|
||||||
into proprietary programs. If your program is a subroutine library, you
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
may consider it more useful to permit linking proprietary applications with
|
may consider it more useful to permit linking proprietary applications with
|
||||||
the library. If this is what you want to do, use the GNU Lesser General
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
Public License instead of this License. But first, please read
|
Public License instead of this License. But first, please read
|
||||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Function library for buildpkg build.sh
|
# Function library for buildpkg build.sh
|
||||||
# This is only for build.sh helper functions.
|
# This is only for build.sh helper functions.
|
||||||
# Copyright (C) 2003 Jens Henrik Leonhard Jensen
|
# Copyright (C) 2003 Jens Henrik Leonhard Jensen
|
||||||
# Copyright (C) 2003-2013 Tom G. Christensen <tgc@jupiterrise.com>
|
# Copyright (C) 2003-2019 Tom G. Christensen <tgc@jupiterrise.com>
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -14,7 +14,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ timestamp()
|
|||||||
log_start()
|
log_start()
|
||||||
{
|
{
|
||||||
local func=$1
|
local func=$1
|
||||||
build_sh_logfile=${topdir}-${version}_${pkgver}-${os}-${arch}-${func}-$(timestamp).log
|
build_sh_logfile=${topdir}-${version}_${pkgver}-${os}-${build_arch}-${func}-$(timestamp).log
|
||||||
|
|
||||||
if [ $autolog -eq 1 ]; then
|
if [ $autolog -eq 1 ]; then
|
||||||
if [ -z "$(${__expr} "$nolog" : ".*\($func\)")" ]; then
|
if [ -z "$(${__expr} "$nolog" : ".*\($func\)")" ]; then
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Global function library for buildpkg
|
# Global function library for buildpkg
|
||||||
# Copyright (C) 2003-2013 Tom G. Christensen <tgc@jupiterrise.com>
|
# Copyright (C) 2003-2019 Tom G. Christensen <tgc@jupiterrise.com>
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
||||||
|
|
||||||
@ -67,7 +67,8 @@ topsrcdir=$topdir-$version # it may be necessary to override this
|
|||||||
|
|
||||||
srcfiles=$buildpkgbase/srcfiles
|
srcfiles=$buildpkgbase/srcfiles
|
||||||
|
|
||||||
topinstalldir=/usr/tgcware
|
pkgdirdesig=tgcware # topinstalldir suffix
|
||||||
|
topinstalldir=/usr/$pkgdirdesig
|
||||||
prefix=$topinstalldir
|
prefix=$topinstalldir
|
||||||
metainstalldir=$topinstalldir
|
metainstalldir=$topinstalldir
|
||||||
|
|
||||||
@ -100,8 +101,6 @@ pkgprefix=SB
|
|||||||
pkgname=$pkgprefix$topdir # overriding this will be common
|
pkgname=$pkgprefix$topdir # overriding this will be common
|
||||||
name=$topdir # as will this ditto
|
name=$topdir # as will this ditto
|
||||||
|
|
||||||
pkgdirdesig=${topinstalldir##/*/} # topinstalldir suffix
|
|
||||||
|
|
||||||
# Functionality controls
|
# Functionality controls
|
||||||
symlinkman=0 # Don't replace .so linking with symlinks pr. default
|
symlinkman=0 # Don't replace .so linking with symlinks pr. default
|
||||||
symlinkman_verbose=0 # Be quiet
|
symlinkman_verbose=0 # Be quiet
|
||||||
@ -153,6 +152,8 @@ patch_prefix="-p1"
|
|||||||
gnu_prefix=g
|
gnu_prefix=g
|
||||||
# GNU dir
|
# GNU dir
|
||||||
_gnudir=gnu
|
_gnudir=gnu
|
||||||
|
# Add --program-prefix to configure if gnu_link is requested?
|
||||||
|
gnu_configure=1
|
||||||
|
|
||||||
# Distfiles should be named like this
|
# Distfiles should be named like this
|
||||||
# <name>-<version>-<pkgver>.sb-<os>-<cpu>-<pkgdirdesig>
|
# <name>-<version>-<pkgver>.sb-<os>-<cpu>-<pkgdirdesig>
|
||||||
@ -397,7 +398,7 @@ get_files()
|
|||||||
# unpack(): Unpack source
|
# unpack(): Unpack source
|
||||||
# params: $1 = source number (arrayindex)
|
# params: $1 = source number (arrayindex)
|
||||||
# It will detect filetype and unpack
|
# It will detect filetype and unpack
|
||||||
# .tar, .tgz, .gz, .bz2, .xz, .zip and .Z supported
|
# .tar, .tgz, .gz, .bz2, .xz, .lzma, .zip and .Z supported
|
||||||
unpack()
|
unpack()
|
||||||
{
|
{
|
||||||
local source=${source[$1]}
|
local source=${source[$1]}
|
||||||
@ -434,7 +435,8 @@ unpack()
|
|||||||
'bz2') ${__bzip2} -dc $absfile | ${__tar} -xf -;;
|
'bz2') ${__bzip2} -dc $absfile | ${__tar} -xf -;;
|
||||||
'Z') ${__gzip} -dc $absfile | ${__tar} -xf -;;
|
'Z') ${__gzip} -dc $absfile | ${__tar} -xf -;;
|
||||||
'tgz') ${__gzip} -dc $absfile | ${__tar} -xf -;;
|
'tgz') ${__gzip} -dc $absfile | ${__tar} -xf -;;
|
||||||
'xz') ${__xz} -dc $absfile | ${__tar} -xf -;;
|
'xz'|'lzma') ${__xz} -dc $absfile | ${__tar} -xf -;;
|
||||||
|
'lz') ${__lzip} -dc $absfile | ${__tar} -xf -;;
|
||||||
'zip') ${__unzip} -q $absfile;;
|
'zip') ${__unzip} -q $absfile;;
|
||||||
*) error $E_BAD_COMPRESS unpack
|
*) error $E_BAD_COMPRESS unpack
|
||||||
esac
|
esac
|
||||||
@ -765,25 +767,39 @@ check_changelog()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# gnu_link: Setup links in $prefix/$_gnudir
|
# do_gnu_link: Create symlinks in $prefix/$_gnudir
|
||||||
# params: list of programs to link
|
# params: list of programs to link
|
||||||
# For each program given, create a symlink from $prefix/${_bindir}/program to
|
# For each program given, create a symlink from $prefix/${_bindir}/program to
|
||||||
# $prefix/gnu with the first character stripped from the name
|
# $prefix/gnu with the first character stripped from the name
|
||||||
gnu_link()
|
do_gnu_link()
|
||||||
{
|
{
|
||||||
local program
|
local program
|
||||||
|
|
||||||
${__mkdir} -p ${stagedir}${prefix}/$_gnudir
|
${__mkdir} -p ${stagedir}${prefix}/$_gnudir
|
||||||
setdir ${stagedir}${prefix}/$_gnudir
|
cd ${stagedir}${prefix}/$_gnudir
|
||||||
|
|
||||||
for program in $@
|
for program in $@
|
||||||
do
|
do
|
||||||
local dest=${program:1}
|
local dest=${program:1}
|
||||||
echo "Linking $prefix/${_bindir}/$program to $prefix/$_gnudir/$dest"
|
echo "Linking $prefix/${_bindir}/$program to $prefix/$_gnudir/$dest"
|
||||||
${__ln_s} ../${_bindir}/$program ${program:1}
|
${__ln_s} ../${_bindir}/$program ${dest}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# gnu_link: Prepare for gnu symlink setup
|
||||||
|
# params: list of programs to link
|
||||||
|
# Each param is added to the internal gnu_link_progs array
|
||||||
|
# It will also add --program-prefix=$gnu_prefix to configure_args if requested
|
||||||
|
gnu_link()
|
||||||
|
{
|
||||||
|
local item
|
||||||
|
for item in "$@"
|
||||||
|
do
|
||||||
|
gnu_link_progs+=($item)
|
||||||
|
done
|
||||||
|
[ $gnu_configure -eq 1 ] && configure_args=(--program-prefix=$gnu_prefix "${configure_args[@]}")
|
||||||
|
}
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
# Define generic functions for different build stages
|
# Define generic functions for different build stages
|
||||||
#####################################################
|
#####################################################
|
||||||
@ -845,7 +861,7 @@ generic_build()
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
error $E_BAD_CONFIG generic_build
|
error $E_BAD_CONFIG generic_build
|
||||||
fi
|
fi
|
||||||
${__make} $(_upls $make_build_target)
|
${__make} ${make_build_opts} $(_upls $make_build_target)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
error $E_BAD_MAKE generic_build
|
error $E_BAD_MAKE generic_build
|
||||||
fi
|
fi
|
||||||
@ -935,13 +951,11 @@ generic_install()
|
|||||||
if [ $autonuke -eq 1 ]; then
|
if [ $autonuke -eq 1 ]; then
|
||||||
do_autonuke
|
do_autonuke
|
||||||
fi
|
fi
|
||||||
if [ -n "$gnu_link_progs" ]; then
|
# If there are programs that should be linked to $prefix/$_gnudir
|
||||||
# There are programs that should be linked to $prefix/$_gnudir
|
|
||||||
local prog
|
local prog
|
||||||
for prog in $gnu_link_progs; do
|
for prog in "${gnu_link_progs[@]}"; do
|
||||||
gnu_link ${gnu_prefix}${prog}
|
do_gnu_link ${gnu_prefix}${prog}
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# generic_install_perl(): Install already built perl module
|
# generic_install_perl(): Install already built perl module
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Function library for buildpkg framework
|
# Function library for buildpkg framework
|
||||||
# It adds support for creating Irix packages in 'inst' format
|
# It adds support for creating Irix packages in 'inst' format
|
||||||
# Copyright (C) 2003-2013 Tom G. Christensen <tgc@jupiterrise.com>
|
# Copyright (C) 2003-2019 Tom G. Christensen <tgc@jupiterrise.com>
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Function library for buildpkg framework
|
# Function library for buildpkg framework
|
||||||
# It adds support for creating Solaris packages in 'sysv' format
|
# It adds support for creating Solaris packages in 'sysv' format
|
||||||
# Copyright (C) 2003-2013 Tom G. Christensen <tgc@jupiterrise.com>
|
# Copyright (C) 2003-2019 Tom G. Christensen <tgc@jupiterrise.com>
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
# Written by Tom G. Christensen <tgc@jupiterrise.com>.
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ _mandir=share/man
|
|||||||
_infodir=share/info
|
_infodir=share/info
|
||||||
|
|
||||||
# Default configure args
|
# Default configure args
|
||||||
configure_args=(${gnu_link_progs:+--program-prefix=$gnu_prefix} --prefix=$prefix --mandir=${prefix}/${_mandir} --infodir=${prefix}/${_infodir})
|
configure_args=(--prefix=$prefix --mandir=${prefix}/${_mandir} --infodir=${prefix}/${_infodir})
|
||||||
|
|
||||||
# Host specific configuration
|
# Host specific configuration
|
||||||
[ -r $buildpkgscripts/config.`hostname`.solaris ] && . $buildpkgscripts/config.`hostname`.solaris
|
[ -r $buildpkgscripts/config.`hostname`.solaris ] && . $buildpkgscripts/config.`hostname`.solaris
|
||||||
@ -108,6 +108,12 @@ configure_args=(${gnu_link_progs:+--program-prefix=$gnu_prefix} --prefix=$prefix
|
|||||||
# evaluated (using _upls)
|
# evaluated (using _upls)
|
||||||
distfile='$secname-$version-$secver.tgc-$os-$build_arch-$pkgdirdesig'
|
distfile='$secname-$version-$secver.tgc-$os-$build_arch-$pkgdirdesig'
|
||||||
|
|
||||||
|
# What pkgdef file to use
|
||||||
|
pkgdef_file=pkgdef
|
||||||
|
# Check and see if there is an arch specific pkgdef file
|
||||||
|
[ -r $metadir/pkgdef.$arch ] && pkgdef_file=pkgdef.$arch
|
||||||
|
[ -r $metadir/pkgdef.$build_arch ] && pkgdef_file=pkgdef.$build_arch
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
# "external" functions
|
# "external" functions
|
||||||
#####################################################
|
#####################################################
|
||||||
@ -659,7 +665,7 @@ auto_deps()
|
|||||||
done >> $metadir/depend.$secname.auto
|
done >> $metadir/depend.$secname.auto
|
||||||
}
|
}
|
||||||
|
|
||||||
# parse_pkgdef(): Read in $metadir/pkgdef
|
# parse_pkgdef(): Read in $metadir/$pkgdef_file
|
||||||
# params: none
|
# params: none
|
||||||
# This will parse the package descriptions in
|
# This will parse the package descriptions in
|
||||||
# pkgdef that tells us how many packages there
|
# pkgdef that tells us how many packages there
|
||||||
@ -673,11 +679,6 @@ parse_def()
|
|||||||
local legalend=0
|
local legalend=0
|
||||||
local hasaddedpkginfo=0
|
local hasaddedpkginfo=0
|
||||||
local condexpr=""
|
local condexpr=""
|
||||||
local pkgdef_file=pkgdef
|
|
||||||
|
|
||||||
# Check and see if there is an arch specific pkgdef file
|
|
||||||
[ -r $metadir/pkgdef.$arch ] && pkgdef_file=pkgdef.$arch
|
|
||||||
[ -r $metadir/pkgdef.$build_arch ] && pkgdef_file=pkgdef.$build_arch
|
|
||||||
|
|
||||||
while read line
|
while read line
|
||||||
do
|
do
|
||||||
|
@ -9,6 +9,7 @@ __vtar=/usr/bin/tar # vendor supplied tar
|
|||||||
__bzip2=/usr/tgcware/bin/bzip2
|
__bzip2=/usr/tgcware/bin/bzip2
|
||||||
__gzip=/usr/tgcware/bin/gzip
|
__gzip=/usr/tgcware/bin/gzip
|
||||||
__xz=/usr/tgcware/bin/xz
|
__xz=/usr/tgcware/bin/xz
|
||||||
|
__lzip=/usr/tgcware/bin/lzip
|
||||||
__patch=/usr/tgcware/bin/patch # GNU patch 2.5 or better please!
|
__patch=/usr/tgcware/bin/patch # GNU patch 2.5 or better please!
|
||||||
__rm=/usr/bin/rm
|
__rm=/usr/bin/rm
|
||||||
__rmdir=/usr/bin/rmdir
|
__rmdir=/usr/bin/rmdir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user