Commit de93ef04 authored by abveritas's avatar abveritas
Browse files

strigi, hugin, enblend, encfs builds for icu/boost, added mariad packages,...

strigi, hugin, enblend, encfs builds for icu/boost, added mariad packages, possible replacing mysql, php rebuild on mariadb/new boost
parent 9fff49ac
......@@ -4,7 +4,7 @@
pkgname=enblend-enfuse
pkgver=4.0
pkgrel=4
pkgrel=5
pkgdesc="intelligent blend tool for overlapping picture"
arch=("x86_64")
license=('GPL')
......
......@@ -5,7 +5,7 @@
pkgname=encfs
pkgver=1.7.4
pkgrel=6
pkgrel=7
pkgdesc='Encrypted filesystem in user-space'
arch=('x86_64')
url='http://www.arg0.net/encfs'
......
......@@ -6,14 +6,14 @@
pkgname=hugin-tools
_pkgname=hugin
pkgver=2012.0.0
pkgrel=1
pkgrel=2
pkgdesc="Hugin libs and tools to be used by Kipi-plugins"
arch=('x86_64')
url="http://hugin.sourceforge.net/"
license=('LGPL')
depends=('boost-libs' 'enblend-enfuse' 'exiv2' 'openexr' 'libpano13>=2.9.18'
'lapack' 'desktop-file-utils' 'icu' 'libxt' 'lensfun')
makedepends=('zip' 'cmake' 'boost' 'mesa' 'tclap' 'python2' 'swig')
makedepends=('zip' 'cmake' 'boost' 'mesa' 'tclap')
conflict=('hugin')
provides=('hugin')
source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2")
......@@ -34,11 +34,12 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_EXE_LINKER_FLAGS="-lpthread" \
-DENABLE_LAPACK=yes
-DENABLE_LAPACK=yes \
-DBUILD_HSI=no
make
}
package(){
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
# contirbutor Michael Haesel <michael DOT haesel AT gmail DOT com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=libmariadbclient
_pkgname=mariadb
pkgdesc="MariaDB client libraries"
pkgver=5.5.28.a
_pkgver=${pkgver/.a/a}
pkgrel=1
arch=('x86_64')
license=('GPL')
url="http://mariadb.org/"
makedepends=('cmake' 'openssl' 'zlib')
depends=('openssl')
conflicts=('libmysqlclient')
provides=("libmysqlclient=${_pkgver}")
options=('!libtool')
source=("http://mirrors.supportex.net/${_pkgname}/${_pkgname}-${_pkgver}/kvm-tarbake-jaunty-x86/${_pkgname}-${_pkgver}.tar.gz")
sha256sums=('66c908592763c641f2a1e9fd83f080458a0d3375cda9aaf7700a37877b1e9968')
build() {
cd "${srcdir}"
mkdir build
cd build
# CFLAGS/CXXFLAGS as suggested upstream
CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
cmake ../${_pkgname}-${_pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc/mysql \
-DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DINSTALL_INFODIR=share/mysql/docs \
-DINSTALL_MANDIR=share/man \
-DINSTALL_PLUGINDIR=/usr/lib/mysql/plugin \
-DINSTALL_SCRIPTDIR=bin \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_DOCREADMEDIR=share/mysql \
-DINSTALL_SUPPORTFILESDIR=share/mysql \
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
-DWITH_READLINE=ON \
-DWITH_ZLIB=system \
-DWITH_SSL=system \
-DWITH_LIBWRAP=OFF \
-DWITH_MYSQLD_LDFLAGS="${LDFLAGS}" \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_EMBEDDED_SERVER=ON \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_PBXT_STORAGE_ENGINE=1 \
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 \
-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1
make
}
package() {
cd "${srcdir}"/build
for dir in include libmysql libmysqld libservices; do
make -C ${dir} DESTDIR="${pkgdir}" install
done
install -d "${pkgdir}"/usr/bin
install -m755 scripts/mysql_config "${pkgdir}"/usr/bin/
install -d "${pkgdir}"/usr/share/man/man1
for man in mysql_config mysql_client_test_embedded mysqltest_embedded; do
install -m644 "${srcdir}"/${_pkgname}-${_pkgver}/man/$man.1 "${pkgdir}"/usr/share/man/man1/$man.1
done
}
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
# contributor Michael Haesel <michael DOT haesel AT gmail DOT com>
# contributor Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=mariadb-clients
_pkgname=mariadb
pkgdesc="MariaDB client tools"
pkgver=5.5.28.a
_pkgver=${pkgver/.a/a}
pkgrel=1
arch=('x86_64')
license=('GPL')
url="http://mariadb.org/"
makedepends=('cmake' 'openssl' 'zlib')
depends=('libmariadbclient')
conflicts=('mysql-clients')
provides=("mysql-clients=${_pkgver}")
options=('!libtool')
source=("http://mirrors.supportex.net/${_pkgname}/${_pkgname}-${_pkgver}/kvm-tarbake-jaunty-x86/${_pkgname}-${_pkgver}.tar.gz")
sha256sums=('66c908592763c641f2a1e9fd83f080458a0d3375cda9aaf7700a37877b1e9968')
build() {
cd "${srcdir}"
mkdir build
cd build
# CFLAGS/CXXFLAGS as suggested upstream
CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
cmake ../${_pkgname}-${_pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc/mysql \
-DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DINSTALL_INFODIR=share/mysql/docs \
-DINSTALL_MANDIR=share/man \
-DINSTALL_PLUGINDIR=/usr/lib/mysql/plugin \
-DINSTALL_SCRIPTDIR=bin \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_DOCREADMEDIR=share/mysql \
-DINSTALL_SUPPORTFILESDIR=share/mysql \
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
-DWITH_READLINE=ON \
-DWITH_ZLIB=system \
-DWITH_SSL=system \
-DWITH_LIBWRAP=OFF \
-DWITH_MYSQLD_LDFLAGS="${LDFLAGS}" \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_EMBEDDED_SERVER=ON \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_PBXT_STORAGE_ENGINE=1 \
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 \
-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1
make
}
package() {
cd "${srcdir}"/build
make -C client DESTDIR="${pkgdir}" install
# install man pages
install -d "${pkgdir}"/usr/share/man/man1
for man in mysql mysqladmin mysqlcheck mysqldump mysqlimport mysqlshow mysqlslap; do
install -m644 "${srcdir}"/${_pkgname}-${_pkgver}/man/$man.1 "${pkgdir}"/usr/share/man/man1/$man.1
done
# provided by mariadb
rm "${pkgdir}"/usr/bin/{mysql_{plugin,upgrade},mysqlbinlog,mysqltest}
}
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
# contributor Michael Haesel <michael DOT haesel AT gmail DOT com>
# contributor Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=mariadb
pkgdesc="A fast SQL database server, drop-in replacement for MySQL"
pkgver=5.5.28.a
_pkgver=${pkgver/.a/a}
pkgrel=1
arch=('x86_64')
license=('GPL')
url="http://mariadb.org/"
backup=('etc/mysql/my.cnf')
makedepends=('cmake' 'openssl' 'zlib')
depends=('mariadb-clients')
optdepends=('perl-dbi' 'perl-dbd-mysql')
conflicts=('mysql')
provides=("mysql=${_pkgver}")
install=${pkgname}.install
options=('!libtool' 'emptydirs')
source=("http://mirrors.supportex.net/${pkgname}/${pkgname}-${_pkgver}/kvm-tarbake-jaunty-x86/${pkgname}-${_pkgver}.tar.gz"
'mariadb.service'
'mariadb.tmpfiles')
sha256sums=('66c908592763c641f2a1e9fd83f080458a0d3375cda9aaf7700a37877b1e9968'
'ef3524c227ce0219e511fd4f3e17ec869fcde7ebf653d21e53bbf4d543cfcc20'
'51ac45bce09f408d305dd770d75c7893e9f7612d9cf223a30aa22967dd7738de')
build() {
cd "${srcdir}"
mkdir build
cd build
# CFLAGS/CXXFLAGS as suggested upstream
CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
cmake ../${pkgname}-${_pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc/mysql \
-DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DINSTALL_INFODIR=share/mysql/docs \
-DINSTALL_MANDIR=share/man \
-DINSTALL_PLUGINDIR=/usr/lib/mysql/plugin \
-DINSTALL_SCRIPTDIR=bin \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_DOCREADMEDIR=share/mysql \
-DINSTALL_SUPPORTFILESDIR=share/mysql \
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
-DWITH_READLINE=ON \
-DWITH_ZLIB=system \
-DWITH_SSL=system \
-DWITH_LIBWRAP=OFF \
-DWITH_MYSQLD_LDFLAGS="${LDFLAGS}" \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_EMBEDDED_SERVER=ON \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_PBXT_STORAGE_ENGINE=1 \
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 \
-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
install -Dm644 "${pkgdir}"/usr/share/mysql/my-medium.cnf "${pkgdir}"/etc/mysql/my.cnf
install -Dm644 "${srcdir}"/mariadb.service "${pkgdir}"/usr/lib/systemd/system/mysqld.service
install -Dm644 "${srcdir}"/mariadb.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/mysql.conf
# provided by libmariadbclient
rm "${pkgdir}"/usr/bin/{mysql_config,mysql_client_test_embedded,mysqltest_embedded}
rm "${pkgdir}"/usr/lib/libmysql*
rm -r "${pkgdir}"/usr/include/
rm "${pkgdir}"/usr/share/man/man1/{mysql_config,mysql_client_test_embedded,mysqltest_embedded}.1
# provided by mariadb-clients
rm "${pkgdir}"/usr/bin/{mysql,mysqladmin,mysqlcheck,mysqldump,mysqlimport,mysqlshow,mysqlslap}
rm "${pkgdir}"/usr/share/man/man1/{mysql,mysqladmin,mysqlcheck,mysqldump,mysqlimport,mysqlshow,mysqlslap}.1
# not needed
rm -r "${pkgdir}"/usr/{data,mysql-test,sql-bench}
rm "${pkgdir}"/usr/share/man/man1/mysql-test-run.pl.1
install -dm700 "${pkgdir}"/var/lib/mysql
}
post_install(){
groupadd -g 89 mysql &>/dev/null
useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
chown -R mysql:mysql var/lib/mysql &>/dev/null
if [[ ! -d run/mysqld ]]; then
usr/bin/systemd-tmpfiles --create usr/lib/tmpfiles.d/mysql.conf
fi
}
post_upgrade(){
getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql &>/dev/null
getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
if [[ ! -d run/mysqld ]]; then
usr/bin/systemd-tmpfiles --create usr/lib/tmpfiles.d/mysql.conf
fi
if [[ "$(vercmp $2 5.5)" -lt 0 ]]; then
echo ">>> Major version update. Consider restart the service, and"
echo " then running mysql_upgrade after it."
fi
if [[ "$(vercmp $2 5.5.25-4)" -lt 0 ]] && [[ -d /data ]]; then
for x in data/*; do
cp -r $x var/lib/mysql/
done
rm -rf data
fi
if [[ "$(vercmp $2 5.5.25-5)" -lt 0 ]]; then
echo ">>> mysql.service has been renamed to mysqld.service to keep"
echo " consistency with MySQL package."
fi
}
post_remove(){
if getent passwd mysql >/dev/null 2>&1; then
userdel mysql
fi
if getent group mysql >/dev/null 2>&1; then
groupdel mysql
fi
}
[Unit]
Description=MariaDB database server
After=syslog.target network.target
[Service]
User=mysql
Group=mysql
ExecStart=/usr/bin/mysqld --pid-file=/var/run/mysqld/mysqld.pid
ExecStop=/bin/kill -15 $MAINPID
PIDFile=/var/run/mysqld/mysqld.pid
WorkingDirectory=/usr
# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
Restart=always
# Place temp files in a secure directory, not /tmp
PrivateTmp=true
[Install]
WantedBy=multi-user.target
d /var/run/mysqld 0755 mysql mysql -
......@@ -26,11 +26,11 @@ pkgname=('php'
'php-tidy'
'php-xsl')
pkgver=5.4.11
pkgrel=1
pkgrel=2
arch=('x86_64')
license=('PHP')
url='http://www.php.net'
makedepends=('apache' 'imap' 'postgresql-libs' 'mysql' 'libldap' 'postfix' 'libvpx'
makedepends=('apache' 'imap' 'postgresql-libs' 'mariadb' 'libldap' 'postfix' 'libvpx'
'sqlite3' 'unixodbc' 'net-snmp' 'libzip' 'enchant' 'file' 'freetds'
'libmcrypt' 'tidyhtml' 'aspell' 'libltdl' 'libpng' 'libjpeg-turbo' 'icu'
'curl' 'libxslt' 'openssl' 'bzip2' 'db' 'gmp' 'freetype2')
......
......@@ -6,7 +6,7 @@
pkgname=strigi
pkgver=0.7.7
pkgrel=3
pkgrel=4
pkgdesc="Fast crawling desktop search engine with Qt4 GUI"
arch=('x86_64')
url="http://www.vandenoever.info/software/strigi/"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment