glib2 group (part2)

This commit is contained in:
AlmAck 2015-01-05 22:15:44 +01:00
parent e3a653a733
commit 0d50994e10
9 changed files with 194 additions and 165 deletions

BIN
gdal/.PKGBUILD.kate-swp Normal file

Binary file not shown.

View File

@ -1,48 +1,56 @@
# Platform Packages for Chakra, part of chakra-project.org
# maintainer abveritas@chakra-project.org
# Platform Packages for Chakra, part of chakraos.org
# maintainer almack
pkgname=gdal
pkgver=1.10.1
pkgrel=2
pkgver=1.11.1
pkgrel=1
pkgdesc="A translator library for raster geospatial data formats"
arch=('x86_64')
url="http://www.gdal.org/"
license=('custom')
depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg' 'libpng' 'libtiff'
'netcdf' 'python2' 'python-numpy' 'sqlite3' 'libmariadbclient' 'postgresql-libs' 'pcre')
'netcdf' 'poppler' 'libspatialite' 'python2' 'python2-numpy' 'sqlite3' 'libmariadbclient' 'postgresql-libs' 'pcre')
makedepends=('perl' 'swig' 'chrpath')
optdepends=('postgresql: postgresql database support'
'mariadb: mariadb database support'
'perl: perl binding support'
'swig: perl binding support')
options=('!libtool' '!makeflags')
options=('!makeflags')
source=("http://download.osgeo.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
'gdal-1.5.1-python-install.patch')
sha1sums=('b4df76e2c0854625d2bedce70cc1eaf4205594ae'
sha1sums=('e2c67481932ec9fb6ec3c0faadc004f715c4eef4'
'1c80a38f4f65cdbe3f475ad551294d657c870170')
prepare() {
cd "${srcdir}"/$pkgname-$pkgver
patch -Np0 -i "${srcdir}"/gdal-1.5.1-python-install.patch
# python2 fixes
sed -i 's_python python1.5_python2 python python1.5_' configure
for file in swig/python/{,osgeo/,samples/,scripts/}*.py; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
# Fix mandir
sed -i "s|^mandir=.*|mandir='\${prefix}/share/man'|" configure
}
build() {
export CFLAGS="$CFLAGS -fno-strict-aliasing"
export LDFLAGS="$LDFLAGS -Wl,--as-needed"
cd ${srcdir}/$pkgname-$pkgver
patch -p0 -i ${srcdir}/gdal-1.5.1-python-install.patch
# python2 fixes
sed -i 's_python python1.5_python2 python python1.5_' configure
for file in swig/python/{,osgeo/,samples/,scripts/}*.py; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 \
--with-geotiff --with-mysql --with-python --without-libtool --with-curl \
--with-hdf5 --with-perl --with-geos --with-png
--with-geotiff --with-mysql --with-python --with-curl \
--with-hdf5 --with-perl --with-geos --with-png --with-poppler
# workaround for bug #13646
sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile
make
make man
}
package () {
@ -50,12 +58,14 @@ package () {
install -d ${pkgdir}/usr/lib/python2.7/site-packages/
make DESTDIR=${pkgdir} install
make DESTDIR="${pkgdir}" install-man
# install license
install -D -m644 LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -D -m644 LICENSE.TXT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
#FS15477 clean up junks
rm -f ${pkgdir}/usr/bin/*.dox
rm -f "${pkgdir}"/usr/bin/*.dox
rm -f "${pkgdir}"/usr/share/man/man1/_build_gdal_src_gdal-${pkgver}_apps_.1
# Remove RPATH
chrpath --delete "${pkgdir}"/usr/lib/perl5/${CARCH}-linux-thread-multi/auto/Geo/OSR/OSR.so

View File

@ -1,110 +1,106 @@
# maintainer abveritas[at]chakra-project[dot]org
# Contributor: <Yeking@Red54.com>
_doc_root=/srv/http
_server_root=/etc/nginx
_conf_path=${_server_root}/conf
_tmp_path=/var/spool/nginx
_log_path=/var/log/nginx
_user=http
_group=http
pkgname=nginx
pkgver=1.4.4
pkgver=1.6.2
pkgrel=1
pkgdesc="small, but very powerful and efficient web server and mail proxy"
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
arch=('x86_64')
url='http://nginx.org'
license=('custom')
depends=('pcre' 'zlib' 'openssl')
url="http://nginx.org"
screenshot="http://wiki.nginx.org/local/nginx-logo.png"
license=('2-clause BSD')
backup=("etc/nginx/conf/fastcgi.conf"
"etc/nginx/conf/fastcgi_params"
"etc/nginx/conf/koi-win"
"etc/nginx/conf/koi-utf"
"etc/nginx/conf/mime.types"
"etc/nginx/conf/nginx.conf"
"etc/nginx/conf/scgi_params"
"etc/nginx/conf/uwsgi_params"
"etc/nginx/conf/win-utf"
"etc/logrotate.d/nginx"
"etc/conf.d/nginx")
#makedepends=('hardening-wrapper')
backup=('etc/nginx/fastcgi.conf'
'etc/nginx/fastcgi_params'
'etc/nginx/koi-win'
'etc/nginx/koi-utf'
'etc/nginx/mime.types'
'etc/nginx/nginx.conf'
'etc/nginx/scgi_params'
'etc/nginx/uwsgi_params'
'etc/nginx/win-utf'
'etc/logrotate.d/nginx')
source=("http://nginx.org/download/nginx-$pkgver.tar.gz"
'nginx.service')
md5sums=('5dfaba1cbeae9087f3949860a02caa9f'
'62d494d23aef31d0b867161f9fffa6eb')
nginx.service
nginx.logrotate)
md5sums=('d1b55031ae6e4bce37f8776b94d8b930'
'e67b777bd10f5c180e247092ddfd6eb7'
'19a26a61c8afe78defb8b4544f79a9a0')
build() {
cd $srcdir/nginx-${pkgver}
./configure \
--prefix=${_server_root} \
--sbin-path=/usr/sbin/nginx \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-client-body-temp-path=${_tmp_path}/client_body_temp \
--http-proxy-temp-path=${_tmp_path}/proxy_temp \
--http-fastcgi-temp-path=${_tmp_path}/fastcgi_temp \
--http-log-path=${_log_path}/access.log \
--error-log-path=${_log_path}/error.log \
--user=${_user} --group=${_group} \
--with-imap --with-imap_ssl_module --with-http_ssl_module \
--with-http_stub_status_module \
--with-http_dav_module \
--with-http_gzip_static_module \
--with-ipv6 \
--http-scgi-temp-path=${_tmp_path} \
--http-uwsgi-temp-path=${_tmp_path}
#--add-module=/usr/lib/passenger/ext/nginx \
#--with-http_mp4_module \
#--with-http_realip_module \
#--with-http_addition_module \
#--with-http_xslt_module \
#--with-http_image_filter_module \
#--with-http_geoip_module \
#--with-http_sub_module \
#--with-http_flv_module \
#--with-http_gzip_static_module \
#--with-http_random_index_module \
#--with-http_secure_link_module \
#--with-http_degradation_module \
#--with-http_perl_module \
cd $pkgname-$pkgver
make
./configure \
--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/bin/nginx \
--pid-path=/run/nginx.pid \
--lock-path=/run/lock/nginx.lock \
--user=http \
--group=http \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=stderr \
--http-client-body-temp-path=/var/lib/nginx/client-body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--with-imap \
--with-imap_ssl_module \
--with-ipv6 \
--with-pcre-jit \
--with-file-aio \
--with-http_dav_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_realip_module \
--with-http_spdy_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_addition_module \
--with-http_degradation_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_secure_link_module \
--with-http_sub_module
make
}
package() {
cd $srcdir/nginx-${pkgver}
make DESTDIR=$pkgdir install
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -d $pkgdir/etc/logrotate.d/
cat <<EOF > $pkgdir/etc/logrotate.d/nginx
$_log_path/*log {
create 640 http log
compress
postrotate
/bin/kill -USR1 \`cat /var/run/nginx.pid 2>/dev/null\` 2> /dev/null || true
endscript
}
EOF
install -Dm644 contrib/vim/ftdetect/nginx.vim \
"$pkgdir"/usr/share/vim/vimfiles/ftdetect/nginx.vim
install -Dm644 contrib/vim/syntax/nginx.vim \
"$pkgdir"/usr/share/vim/vimfiles/syntax/nginx.vim
install -Dm644 contrib/vim/indent/nginx.vim \
"$pkgdir"/usr/share/vim/vimfiles/indent/nginx.vim
sed -i -e "s/\<user\s\+\w\+;/user $_user;/g" $pkgdir/$_conf_path/nginx.conf
sed -e 's|\<user\s\+\w\+;|user html;|g' \
-e '44s|html|/usr/share/nginx/html|' \
-e '54s|html|/usr/share/nginx/html|' \
-i "$pkgdir"/etc/nginx/nginx.conf
install -d $pkgdir/$_tmp_path
rm "$pkgdir"/etc/nginx/*.default
# move default document root outside server root
install -d $pkgdir/$_doc_root
mv $pkgdir/$_server_root/html/* $pkgdir/$_doc_root/
rm -rf $pkgdir/$_server_root/html
rm -f $pkgdir/$_doc_root/index.html
install -d "$pkgdir"/var/lib/nginx
install -dm700 "$pkgdir"/var/lib/nginx/proxy
# let's create links for relative paths in config file
ln -s $_log_path $pkgdir/$_server_root/logs
ln -s $_doc_root $pkgdir/$_server_root/html
chmod 750 "$pkgdir"/var/log/nginx
# the group http is not present in the chroot
#chown http:log "$pkgdir"/var/log/nginx
install -D -m644 LICENSE $pkgdir/usr/share/licenses/nginx/LICENSE
mkdir -p $pkgdir/etc/conf.d
echo "NGINX_CONFIG=/etc/nginx/conf/nginx.conf" >$pkgdir/etc/conf.d/nginx
rm -rf $pkgdir/var/run
install -d "$pkgdir"/usr/share/nginx
mv "$pkgdir"/etc/nginx/html/ "$pkgdir"/usr/share/nginx
install -Dm644 "$srcdir/nginx.service" "$pkgdir/usr/lib/systemd/system/nginx.service"
}
install -Dm644 ../nginx.logrotate "$pkgdir"/etc/logrotate.d/nginx
install -Dm644 ../nginx.service "$pkgdir"/usr/lib/systemd/system/nginx.service
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
rmdir "$pkgdir"/run
install -d "$pkgdir"/usr/share/man/man8/
gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz
}

View File

@ -1,14 +1,17 @@
[Unit]
Description=A high performance web server and a reverse proxy server
After=syslog.target network.target
After=network.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
ExecStart=/usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
ExecReload=/usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -s reload
ExecStop=/usr/sbin/nginx -g 'pid /run/nginx.pid;' -s quit
PrivateDevices=yes
SyslogLevel=err
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
ExecReload=/usr/bin/kill -HUP $MAINPID
KillSignal=SIGQUIT
KillMode=mixed
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

View File

@ -3,7 +3,7 @@
#
pkgname=octave
pkgver=3.8.1
pkgver=3.8.2
pkgrel=1
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('x86_64')
@ -17,7 +17,7 @@ optdepends=('texinfo: for help-support in octave'
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.bz2{,.sig})
options=('!emptydirs')
install='octave.install'
sha1sums=('2951aeafe58d562672feb80dd8c3cfe0643a5087'
sha1sums=('02c38e0f69bce4e6dd7be7d301898347085d9c2d'
'SKIP')
prepare() {

View File

@ -3,62 +3,81 @@
#
# maintainer abveritas[at]chakra-project[dot]org>
pkgname=postfix
pkgver=2.11.0
pkgname=(postfix postfix-tools)
pkgbase=postfix
pkgver=2.11.3
pkgrel=1
pkgdesc='Secure, fast, easy to administer alternative to Sendmail'
url='http://www.postfix.org/'
arch=('x86_64')
license=('custom')
depends=('pcre' 'libsasl' 'libmariadbclient' 'postgresql-libs' 'sqlite3' 'libldap' 'db')
backup=('etc/postfix/'{access,aliases,canonical,generic,header_checks,main.cf,master.cf,relocated,transport,virtual})
provides=('smtp-server' 'smtp-forwarder')
replaces=('postfix-mysql' 'postfix-pgsql')
conflicts=('postfix-mysql' 'postfix-pgsql' 'smtp-server' 'smtp-forwarder')
install=$pkgname.install
makedepends=('pcre' 'libsasl' 'libldap' 'db'
'libmariadbclient' 'postgresql-libs' 'sqlite3' 'openssl')
source=("ftp://ftp.porcupine.org/mirrors/postfix-release/official/${pkgname}-${pkgver}.tar.gz"
'aliases.patch'
'postfix.service')
md5sums=('25fe7dd05f81cc0755131beecee046fd'
md5sums=('c3f0f51d8865559b40e9350eb3816011'
'9cc2ee3c72e134c2da5a895abaa56f30'
'24af169de13c34dac03d787c3e607ec5')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd "${srcdir}/${pkgname}-${pkgver}"
make makefiles DEBUG='' CCARGS=' \
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
-DHAS_LDAP \
-DUSE_TLS \
-DHAS_MYSQL -I/usr/include/mysql \
-DHAS_PGSQL -I/usr/include/postgresql \
-DHAS_SQLITE \
' AUXLIBS=' \
-lsasl2 \
-lldap -llber \
-lssl -lcrypto \
-lmysqlclient -lz -lm \
-lpq \
-lsqlite3 -lpthread \
' OPT="${CFLAGS} ${LDFLAGS}"
make makefiles DEBUG='' CCARGS=' \
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
-DHAS_LDAP \
-DUSE_TLS \
-DHAS_MYSQL -I/usr/include/mysql \
-DHAS_PGSQL -I/usr/include/postgresql \
-DHAS_SQLITE \
-DDEF_COMMAND_DIR=\"/usr/bin\" \
-DDEF_DAEMON_DIR=\"/usr/lib/postfix\" \
-DDEF_SENDMAIL_PATH=\"/usr/bin/sendmail\" \
-DDEF_README_DIR=\"/usr/share/doc/postfix\" \
-DDEF_SAMPLE_DIR=\"/etc/postfix/sample\" \
-DDEF_MANPAGE_DIR=\"/usr/share/man\" \
' AUXLIBS=' \
-lsasl2 \
-lldap -llber \
-lssl -lcrypto \
-lmysqlclient -lz -lm \
-lpq \
-lsqlite3 -lpthread \
' OPT="${CFLAGS} ${LDFLAGS}"
make
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
package_postfix() {
pkgdesc='Fast, easy to administer, secure mail server'
depends=('pcre' 'libsasl' 'libldap' 'db'
'libmariadbclient' 'postgresql-libs' 'sqlite3')
backup=('etc/postfix/'{access,aliases,canonical,generic,header_checks,main.cf,master.cf,relocated,transport,virtual})
provides=('smtp-server' 'smtp-forwarder')
replaces=('postfix-mysql' 'postfix-pgsql')
conflicts=('postfix-mysql' 'postfix-pgsql' 'smtp-server' 'smtp-forwarder')
install=$pkgname.install
cd "${srcdir}/postfix-${pkgver}"
sh postfix-install -non-interactive \
install_root="${pkgdir}" \
daemon_directory="/usr/lib/${pkgname}" \
sample_directory="/etc/${pkgname}/sample" \
manpage_directory="/usr/share/man" \
readme_directory="/usr/share/doc/${pkgname}"
sh postfix-install -non-interactive install_root="${pkgdir}"
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 ../postfix.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
cd "${pkgdir}"
patch -p0 < "${srcdir}"/aliases.patch
sed 's/^\(\$manpage[^:]*\):/\1.gz:/' -i "usr/lib/${pkgname}/postfix-files"
cd "${pkgdir}"
patch -p0 -i "${srcdir}"/aliases.patch
sed 's/^\(\$manpage[^:]*\):/\1.gz:/' -i "usr/lib/${pkgname}/postfix-files"
}
package_postfix-tools() {
pkgdesc='SMTP/QMQP tools from the postfix distribution'
depends=('openssl')
cd "${srcdir}/postfix-${pkgver}"
for name in posttls-finger {smtp,qmqp}-{sink,source}; do
install -Dm644 "man/man1/${name}.1" "$pkgdir/usr/share/man/man1/${name}.1"
install -Dm755 "bin/${name}" "$pkgdir/usr/bin/${name}"
done
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -7,7 +7,7 @@
# Mateusz Krawczuk <willingmagic@gmail.com>
pkgname=python3
pkgver=3.4.1
pkgver=3.4.2
pkgrel=1
_pybasever=3.4
pkgdesc="Next generation of the python high-level scripting language"
@ -23,7 +23,7 @@ optdepends=('python3-setuptools'
'tk: for tkinter')
options=('!makeflags')
source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.xz)
md5sums=('6cafc183b4106476dd73d5738d7f616a')
md5sums=('36fc7327c02c6f12fa24fc9ba78039e3')
prepare(){
cd Python-${pkgver}
@ -57,7 +57,7 @@ build() {
check() {
cd Python-${pkgver}
LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x test_posixpath test_uuid test_site test_urllib2_localnet
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x test_posixpath test_uuid test_site test_urllib2_localnet test_gdb test_socket
}
package() {

View File

@ -1,23 +1,23 @@
# Maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=r
pkgver=3.0.2
pkgrel=3
pkgver=3.1.2
pkgrel=1
pkgdesc="Language and environment for statistical computing and graphics"
arch=('x86_64')
license=('GPL')
url=('http://www.r-project.org/')
depends=('atlas-lapack' 'bzip2' 'libpng' 'libjpeg' 'libtiff'
'ncurses' 'pcre' 'readline' 'zlib' 'perl' 'gcc-libs'
'libxt' 'libxmu' 'pango' 'xz' 'desktop-file-utils' 'tk' 'gcc-fortran')
makedepends=('openjdk')
'libxt' 'libxmu' 'pango' 'xz' 'desktop-file-utils')
makedepends=('openjdk' 'tk' 'gcc-fortran')
backup=('etc/R/Makeconf' 'etc/R/Renviron' 'etc/R/ldpaths' 'etc/R/repositories' 'etc/R/javaconf')
options=('!makeflags' '!emptydirs')
source=("http://cran.r-project.org/src/base/R-${pkgver%%.*}/R-${pkgver}.tar.gz"
'r.desktop'
'r.png'
'R.conf')
sha1sums=('f5d9daef00e09d36a465ff7b0bf4cab136bea227'
sha1sums=('93809368e5735a630611633ac1fa99010020c5d6'
'13aa29219bcaa102e575de8c1c8e0833d233e836'
'a69a07ec363440efc18ce0a7f2af103375dea978'
'43668da6cfd1b4455a99f23e79e2059294dddac9')
@ -49,6 +49,7 @@ build() {
LIBnn=lib
make
# make libRmath.so
cd src/nmath/standalone
make shared
}

View File

@ -1,6 +1,6 @@
pkgname=sord
pkgver=0.12.0
pkgrel=2
pkgver=0.12.2
pkgrel=1
pkgdesc="A lightweight C library for storing RDF data in memory."
arch=('x86_64')
url="http://drobilla.net/software/$pkgname/"
@ -8,7 +8,7 @@ license=('custom:ISC')
depends=('serd' 'pcre')
makedepends=('python2')
source=("http://download.drobilla.net/$pkgname-$pkgver.tar.bz2")
md5sums=('0c045bd0a7a2d70974ed7287bb61f891')
md5sums=('55d5866650b92ab64eda08fcc73aa425')
build() {
cd "$srcdir/$pkgname-$pkgver"