diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-06 13:36:45 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-06 13:36:45 -0300 |
commit | d1e161df4f6111d527c2570958ebaf637411e3e2 (patch) | |
tree | 4231f47e1699769d42f49cccde20687be979e89a /pcr | |
parent | 84b75f29126e52357bbdd40860269d9197fd68fd (diff) | |
parent | a93d4a7da5c55af8f8669fdb63194c0680e0f748 (diff) | |
download | abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.tar.gz abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.tar.bz2 abslibre-d1e161df4f6111d527c2570958ebaf637411e3e2.zip |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr')
51 files changed, 1504 insertions, 499 deletions
diff --git a/pcr/aspcud/PKGBUILD b/pcr/aspcud/PKGBUILD new file mode 100644 index 000000000..064a75ea9 --- /dev/null +++ b/pcr/aspcud/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor (Arch) : Vincent Bernardoff <vb@luminar.eu.org> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=aspcud +groups=('potassco') +pkgver=1.9.0 +pkgrel=1 +pkgdesc="Solver for package dependencies" +arch=('x86_64' 'i686' 'armv6h' 'armv7h') +url="http://potassco.sourceforge.net/" +license=('GPL3') +depends=('clasp>=2.1.3' 'gringo>=4.2.1') +conflicts=('aspcud-svn') +makedepends=('boost' 'cmake' 're2c') +source=("http://downloads.sourceforge.net/project/potassco/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz") + +build() { + cd "$srcdir/$pkgname-$pkgver-source" + mkdir -p build/release + cd build/release + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCUDF2LP_LOC=cudf2lp \ + -DGRINGO_LOC=gringo \ + -DCLASP_LOC=clasp \ + -DCMAKE_BUILD_TYPE=Release ../.. + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver-source" + cd build/release + make DESTDIR=${pkgdir} install +} diff --git a/pcr/babeld/babeld.install b/pcr/babeld/babeld.install deleted file mode 100644 index 686153617..000000000 --- a/pcr/babeld/babeld.install +++ /dev/null @@ -1,18 +0,0 @@ -compatibility_warning() { - echo "PLEASE NOTE:" - echo " " - echo "-------------------------------------------------------------" - echo " This version uses the IANA-allocated UDP port and multicast" - echo " group and is therefore incompatible with older versions." - echo "-------------------------------------------------------------" -} - -post_upgrade() { - major=$(echo $2 | cut -d '.' -f1) - minor=$(echo $2 | cut -d '.' -f2) - if [ $major -lt 1 ]; then - compatibility_warning - elif [ $major -eq 1 -a $minor -lt 1 ]; then - compatibility_warning - fi -} diff --git a/pcr/clasp/PKGBUILD b/pcr/clasp/PKGBUILD new file mode 100644 index 000000000..2367bcdfc --- /dev/null +++ b/pcr/clasp/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor (Arch) : Vincent Bernardoff <vb@luminar.eu.org> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=clasp +groups=('potassco') +pkgver=3.0.3 +pkgrel=1 +pkgdesc="A conflict-driven nogood learning answer set solver." +arch=('x86_64' 'i686' 'armv6h' 'armv7h') +url="http://potassco.sourceforge.net/" +license=('GPL3') +depends=() +source=("http://downloads.sourceforge.net/project/potassco/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure.sh --prefix='/usr' + cd build/release + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build/release/bin" + install -D "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" +} diff --git a/pcr/cppo/PKGBUILD b/pcr/cppo/PKGBUILD new file mode 100644 index 000000000..601882a8a --- /dev/null +++ b/pcr/cppo/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor (Arch) : Leonard de Ruijter <leonard@aur.archlinux.org> +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Justin Davis <jrcd 83 at gmail> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=cppo +pkgver=0.9.3 +pkgrel=2 +pkgdesc="The C preprocessor written in OCaml" +arch=('i686' 'x86_64') +license=('BSD') +makedepends=('ocaml') +url='http://mjambon.com/cppo.html' +source=("http://mjambon.com/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz") + + +build() { + cd $srcdir/$pkgname-$pkgver + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + mkdir -p "${pkgdir}/usr/bin" + make install BINDIR="${pkgdir}/usr/bin" +} diff --git a/pcr/fwsnort/#PKGBUILD# b/pcr/fwsnort/#PKGBUILD# new file mode 100644 index 000000000..a4b666dfa --- /dev/null +++ b/pcr/fwsnort/#PKGBUILD# @@ -0,0 +1,44 @@ +# Contributor (Arch) : Colin Shea <colin@evaryont.me> +# Maintainer (Parabola): Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=fwsnort +pkgver=1.6.4 +pkgrel=1 +pkgdesc="application layer IDS/IPS by translating snort rules into iptables" +arch=('any') +url="http://www.cipherdyne.org/fwsnort/" +license=('GPL') +# net-tools: sorry, but fwsnort needs ifconfig. Doesn't support iproute yet +depends=('perl' 'perl-netaddr-ip' 'perl-iptables-parse' 'iptables' 'net-tools') +makedepends=('wget') +source=(http://www.cipherdyne.org/$pkgname/download/$pkgname-$pkgver.tar.bz2 + ) + +options=(emptydirs) + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # fix up the installer for our purposes: + # - removes the root check + # - includes sbin as another place to check for binares + # - fixes various paths for utilities & the man page + #patch -p1 -i $srcdir/install_pl.patch + + # -S skips installing the perl modules, which we did with packages + # and --install-test-dir sets the INSTALL_ROOT to src/../test/fwsnort-test. An + # easy way to collect all the files into 1 + #./install.pl -S --install-test-dir +} + +#package() { + #cp -r $srcdir/fwsnort-$pkgver/test/fwsnort-install/* -t $pkgdir + # delete references to $pkgdir from fwsnort; they were made by the installer + # as part of installing to the test dir + #cp -f $srcdir/fwsnort-$pkgver/fwsnort.conf $pkgdir/etc/fwsnort/fwsnort.conf + + # avoid a 'warning: directory permissions differ on etc/' line from pacman + #chmod 755 $pkgdir/etc +#} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/fwsnort/#install_pl.patch# b/pcr/fwsnort/#install_pl.patch# new file mode 100644 index 000000000..cf0602d04 --- /dev/null +++ b/pcr/fwsnort/#install_pl.patch# @@ -0,0 +1,126 @@ +diff -u fwsnort-1.6.4-1/install.pl fwsnort-1..3/install.pl +--- fwsnort-1.6.3-2/install.pl 2012-12-24 21:31:28.597018440 -0700 ++++ fwsnort-1.6.3/install.pl 2012-12-24 21:40:38.564569377 -0700 +@@ -45,7 +45,7 @@ + my $perlCmd = '/usr/bin/perl'; + my $makeCmd = '/usr/bin/make'; + my $wgetCmd = '/usr/bin/wget'; +-my $gzipCmd = '/bin/gzip'; ++my $gzipCmd = '/usr/bin/gzip'; + my $tarCmd = '/bin/tar'; + #======================= end config ====================== + +@@ -129,10 +129,6 @@ + ### make sure the system binaries are where we think they are. + &check_commands(); + +-### check to make sure we are running as root +-$< == 0 && $> == 0 or die "You need to be root (or equivalent UID 0", +- " account) to install/uninstall fwsnort!\n"; +- + if ($uninstall) { + &uninstall(); + } else { +@@ -154,10 +150,10 @@ + "sources directory." unless -e 'fwsnort' and -e 'fwsnort.conf'; + + unless (-d $config{'CONF_DIR'}) { +- &full_mkdir($config{'CONF_DIR'}, 0500); ++ &full_mkdir($config{'CONF_DIR'}, 0700); + } + unless (-d $config{'RULES_DIR'}) { +- &full_mkdir($config{'RULES_DIR'}, 0500); ++ &full_mkdir($config{'RULES_DIR'}, 0700); + } + + ### install perl modules +@@ -336,52 +332,11 @@ + + sub install_manpage() { + my $manpage = 'fwsnort.8'; +- ### remove old man page +- unlink "/usr/local/man/man8/${manpage}" if +- (-e "/usr/local/man/man8/${manpage}"); + + ### default location to put the fwsnort man page, but check with + ### /etc/man.config +- my $mpath = '/usr/share/man/man8'; +- if (-e '/etc/man.config') { +- ### prefer to install $manpage in /usr/local/man/man8 if +- ### this directory is configured in /etc/man.config +- open M, '< /etc/man.config' or +- die "[*] Could not open /etc/man.config: $!"; +- my @lines = <M>; +- close M; +- ### prefer the path "/usr/share/man" +- my $found = 0; +- for my $line (@lines) { +- chomp $line; +- if ($line =~ m|^MANPATH\s+/usr/share/man|) { +- $found = 1; +- last; +- } +- } +- ### try to find "/usr/local/man" if we didn't find /usr/share/man +- unless ($found) { +- for my $line (@lines) { +- chomp $line; +- if ($line =~ m|^MANPATH\s+/usr/local/man|) { +- $mpath = '/usr/local/man/man8'; +- $found = 1; +- last; +- } +- } +- } +- ### if we still have not found one of the above man paths, +- ### just select the first one out of /etc/man.config +- unless ($found) { +- for my $line (@lines) { +- chomp $line; +- if ($line =~ m|^MANPATH\s+(\S+)|) { +- $mpath = $1; +- last; +- } +- } +- } +- } ++ my $mpath = $config{'INSTALL_ROOT'}.'/usr/share/man/man8'; ++ + &full_mkdir($mpath, 0755); + my $mfile = "${mpath}/${manpage}"; + print "[+] Installing $manpage man page as $mfile\n"; +@@ -532,6 +487,9 @@ + /bin + /usr/bin + /usr/local/bin ++ /sbin ++ /usr/sbin ++ /usr/local/sbin + ); + CMD: for my $cmd (keys %cmds) { + unless (-x $cmds{$cmd}) { +diff -u fwsnort-1.6.3-2/fwsnort.conf fwsnort-1.6.3/fwsnort.conf +--- fwsnort-1.6.3-2/fwsnort.conf 2012-12-24 22:39:21.323178467 -0700 ++++ fwsnort-1.6.3/fwsnort.conf 2012-12-24 22:41:52.172194457 -0700 +@@ -103,14 +103,14 @@ + + ### system binaries + shCmd /bin/sh; +-echoCmd /bin/echo; ++echoCmd /usr/bin/echo; + tarCmd /bin/tar; + wgetCmd /usr/bin/wget; + unameCmd /usr/bin/uname; + ifconfigCmd /sbin/ifconfig; +-iptablesCmd /sbin/iptables; +-iptables-saveCmd /sbin/iptables-save; +-iptables-restoreCmd /sbin/iptables-restore; +-ip6tablesCmd /sbin/ip6tables; +-ip6tables-saveCmd /sbin/ip6tables-save; +-ip6tables-restoreCmd /sbin/ip6tables-restore; ++iptablesCmd /usr/sbin/iptables; ++iptables-saveCmd /usr/sbin/iptables-save; ++iptables-restoreCmd /usr/sbin/iptables-restore; ++ip6tablesCmd /usr/sbin/ip6tables; ++ip6tables-saveCmd /usr/sbin/ip6tables-save; ++ip6tables-restoreCmd /usr/sbin/ip6tables-restore; diff --git a/pcr/fwsnort/PKGBUILD b/pcr/fwsnort/PKGBUILD index b4983658d..a4b666dfa 100644 --- a/pcr/fwsnort/PKGBUILD +++ b/pcr/fwsnort/PKGBUILD @@ -1,9 +1,9 @@ -# Contributor: Colin Shea <colin@evaryont.me> -# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp> +# Contributor (Arch) : Colin Shea <colin@evaryont.me> +# Maintainer (Parabola): Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=fwsnort -pkgver=1.6.3 -pkgrel=3 +pkgver=1.6.4 +pkgrel=1 pkgdesc="application layer IDS/IPS by translating snort rules into iptables" arch=('any') url="http://www.cipherdyne.org/fwsnort/" @@ -12,7 +12,7 @@ license=('GPL') depends=('perl' 'perl-netaddr-ip' 'perl-iptables-parse' 'iptables' 'net-tools') makedepends=('wget') source=(http://www.cipherdyne.org/$pkgname/download/$pkgname-$pkgver.tar.bz2 - 'install_pl.patch') + ) options=(emptydirs) @@ -23,22 +23,22 @@ build() { # - removes the root check # - includes sbin as another place to check for binares # - fixes various paths for utilities & the man page - patch -p1 -i $srcdir/install_pl.patch + #patch -p1 -i $srcdir/install_pl.patch # -S skips installing the perl modules, which we did with packages # and --install-test-dir sets the INSTALL_ROOT to src/../test/fwsnort-test. An # easy way to collect all the files into 1 - ./install.pl -S --install-test-dir + #./install.pl -S --install-test-dir } -package() { - cp -r $srcdir/fwsnort-$pkgver/test/fwsnort-install/* -t $pkgdir +#package() { + #cp -r $srcdir/fwsnort-$pkgver/test/fwsnort-install/* -t $pkgdir # delete references to $pkgdir from fwsnort; they were made by the installer # as part of installing to the test dir - cp -f $srcdir/fwsnort-$pkgver/fwsnort.conf $pkgdir/etc/fwsnort/fwsnort.conf + #cp -f $srcdir/fwsnort-$pkgver/fwsnort.conf $pkgdir/etc/fwsnort/fwsnort.conf # avoid a 'warning: directory permissions differ on etc/' line from pacman - chmod 755 $pkgdir/etc -} + #chmod 755 $pkgdir/etc +#} # vim:set ts=2 sw=2 et: diff --git a/pcr/godep/PKGBUILD b/pcr/godep/PKGBUILD new file mode 100644 index 000000000..eca1aa9f8 --- /dev/null +++ b/pcr/godep/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Sauyon Lee <sauyon@patchouli> + +pkgname=godep +pkgver=r94.983ff92 +pkgrel=1 +pkgdesc="Dependency tool for go" +arch=('i686' 'x86_64') +url="http://github.com/tools/godep" +license=('BSD') +makedepends=('git' 'go' 'mercurial') +source=("$pkgname::git+https://github.com/tools/godep") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + export GOPATH="$srcdir" + go get code.google.com/p/go.tools/go/vcs + go get github.com/kr/fs +} + +build() { + cd "$srcdir/$pkgname" + + GOPATH="$srcdir" go build +} + +package() { + cd "$srcdir/$pkgname" + + install -Dm755 "$pkgname" "$pkgdir/usr/bin/godep" + install -Dm644 License "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/pcr/grass/PKGBUILD b/pcr/grass/PKGBUILD index 8043821a4..dcbd97b38 100644 --- a/pcr/grass/PKGBUILD +++ b/pcr/grass/PKGBUILD @@ -1,15 +1,16 @@ -# Maintainer (Arch): Thomas Dziedzic < gostrc at gmail > -# Contributor (Arch): dibblethewrecker dibblethewrecker.at.jiwe.dot.org -# Contributor (Arch): Emiliano Vavassori <syntaxerrormmm(at)gmail.com> +# Contributor (Arch) : Thomas Dziedzic < gostrc at gmail > +# Contributor (Arch) : dibblethewrecker dibblethewrecker.at.jiwe.dot.org +# Contributor (Arch) : Emiliano Vavassori <syntaxerrormmm(at)gmail.com> +# Maintainer (Parabola) : pkgname=grass -pkgver=6.4.2 -pkgrel=5 +pkgver=6.4.3 +pkgrel=3 pkgdesc='Geographic Information System (GIS) used for geospatial data management and analysis, image processing, graphics/maps production, spatial modeling, and visualization.' arch=('i686' 'x86_64') url='http://grass.osgeo.org/' license=('GPL') -depends=('cfitsio' 'fftw' 'gdal' 'glu' 'libjpeg' 'libpng' 'libtiff' 'libxmu' 'mesa' 'python2' 'postgresql' 'proj' 'tcl' 'tk' 'wxpython' 'xorg-server') +depends=('cfitsio' 'fftw' 'gdal' 'glu' 'libjpeg' 'libpng' 'libtiff' 'libxmu' 'ncurses' 'mesa' 'python2' 'postgresql' 'proj' 'tcl' 'tk' 'wxpython2.8' 'xorg-server' 'zlib') makedepends=('freetype2') optdepends=('sqlite3: sqlite3 database interface' 'mysql: mysql database interface' @@ -25,29 +26,31 @@ source=("http://grass.osgeo.org/grass64/source/${pkgname}-${pkgver}.tar.gz" "grass.sh" "grass.conf" "grass-python2.patch" - "grass-tk86-fix.patch") -md5sums=('d3398d6b1e3a2ef19cfb6e39a5ae9919' - '23da2e9399b3c5504851dec37821abe1' - '6103480c2a1adc19a50b9e925e5e6d4c' - '8717c73e7d262b1cff44d35ce80c50bb' - 'b7cb69248a387f70dabd5ce20b8297dc') + "wxpython2.8-fix.patch") build() { cd "${srcdir}/${pkgname}-${pkgver}" - # Replacing previous python2 fixes with a patch. - # Thanks to Gunther Schulz to have reported a possible bug in the patching. - patch -p1 -i "${srcdir}/grass-python2.patch" - - # Solves build issue reported here: - # http://trac.osgeo.org/grass/ticket/1843 - patch -p1 -i "${srcdir}/grass-tk86-fix.patch" + # Fixing by hand shebang for .py files. + find . -iname \*.py | xargs sed -ie 's:^#!/usr/bin/env python$:#!/usr/bin/env python2:' + find . -iname \*.py | xargs sed -ie 's:^#!/usr/bin/python$:#!/usr/bin/env python2:' + + # Fixing Makefile compilation + patch -p0 -i "${srcdir}/grass-python2.patch" - # the following exports are probably not needed + # Fixing linking to wxpython 2.8 - Thanks to czk <msieczka(at)sieczka.org> + patch -p0 -i "${srcdir}/wxpython2.8-fix.patch" + + # The following exports are probably not needed export PYTHON=python2 export DOXNAME=python2 export GRASS_python=python2 + # Trying to fix a problem with GRASS configure + # Thanks to Scimmia from ArchLinux Forum + # https://bbs.archlinux.org/viewtopic.php?id=161172 + unset CPPFLAGS + # Enabling 64bit support - EGV if [ "$CARCH" = "x86_64" ]; then ENABLE64BIT="--enable-64bit" @@ -57,10 +60,11 @@ build() { # see ${srcdir}/grass-6.4.0/REQUIREMENTS.html for options # GLw is hard disabled, since no package in Archlinux can provide it - EGV + # Fixing dependency on wxpython2.8 in configure. - EGV ./configure ${ENABLE64BIT} \ --prefix=/opt \ - --enable-64bit \ --enable-W11 \ + --without-glw \ --with-jpeg \ --with-tiff \ --with-png \ @@ -70,7 +74,6 @@ build() { --with-postgres \ --with-freetype \ --with-freetype-includes=/usr/include/freetype2 \ - --without-glw \ --with-nls \ --with-gdal \ --with-geos \ @@ -78,14 +81,14 @@ build() { --with-proj-libs=/usr/lib \ --with-proj-share=/usr/share/proj \ --with-python=/usr/bin/python2-config \ - --with-wxwidgets=/usr/bin/wx-config + --with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 # sqlite3 support # --with-sqlite \ # mysql support # --with-mysql \ - # --with-mysql-includes=/usr/include/mysql \ + # --with-mysql-includes=/usr/include/mariadb \ # blas support # --with-blas \ @@ -94,11 +97,6 @@ build() { # --with-lapack \ make - - # some more potential problems nvm, works without, but save for future use if problems arrise - #cd ${pkgdir}/opt/grass-${pkgver} - #sed -i 's/PYTHON = python/PYTHON = python2/' include/Make/Python.make - #sed -i 's/GRASS_PYTHON=python/GRASS_PYTHON=python2/' etc/Init.sh } package() { @@ -129,10 +127,4 @@ package() { install -D -m644 ${srcdir}/grass.conf \ ${pkgdir}/etc/ld.so.conf.d/grass.conf - - # install g.html2man which is needed for some extensions - # FS#25705 - [grass] g.html2man is not installed into package directory - # https://bugs.archlinux.org/task/25705 - # most likely upstream problem which will be fixed in a version later than 6.4.1 - cp -r ./tools/g.html2man ${pkgdir}/opt/${pkgname}-${pkgver}/tools } diff --git a/pcr/grass/grass-python2.patch b/pcr/grass/grass-python2.patch index ee35949b5..7ab74a7c7 100644 --- a/pcr/grass/grass-python2.patch +++ b/pcr/grass/grass-python2.patch @@ -1,132 +1,6 @@ -diff -ur grass-6.4.2/doc/python/example_ctypes.py grass-6.4.2-new/doc/python/example_ctypes.py ---- grass-6.4.2/doc/python/example_ctypes.py 2010-04-17 14:15:26.000000000 +0200 -+++ grass-6.4.2-new/doc/python/example_ctypes.py 2012-08-16 09:33:01.480497320 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - import os, sys, subprocess - from ctypes import * - grass = CDLL("libgrass_gis.so") -diff -ur grass-6.4.2/general/g.parser/test.py grass-6.4.2-new/general/g.parser/test.py ---- grass-6.4.2/general/g.parser/test.py 2009-07-23 23:08:41.000000000 +0200 -+++ grass-6.4.2-new/general/g.parser/test.py 2012-08-16 09:33:01.513831191 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - # g.parser demo script for python programing - -diff -ur grass-6.4.2/gui/scripts/g.change.gui.py grass-6.4.2-new/gui/scripts/g.change.gui.py ---- grass-6.4.2/gui/scripts/g.change.gui.py 2009-05-30 07:36:32.000000000 +0200 -+++ grass-6.4.2-new/gui/scripts/g.change.gui.py 2012-08-16 09:33:04.353875090 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ############################################################################ - # -diff -ur grass-6.4.2/gui/scripts/g.extension.py grass-6.4.2-new/gui/scripts/g.extension.py ---- grass-6.4.2/gui/scripts/g.extension.py 2012-02-18 18:28:29.000000000 +0100 -+++ grass-6.4.2-new/gui/scripts/g.extension.py 2012-08-16 09:33:04.393875703 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ############################################################################ - # -diff -ur grass-6.4.2/gui/scripts/g.extension.rebuild.all.py grass-6.4.2-new/gui/scripts/g.extension.rebuild.all.py ---- grass-6.4.2/gui/scripts/g.extension.rebuild.all.py 2012-02-01 10:26:11.000000000 +0100 -+++ grass-6.4.2-new/gui/scripts/g.extension.rebuild.all.py 2012-08-16 09:33:04.320541242 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ############################################################################ - # -diff -ur grass-6.4.2/gui/scripts/v.type_wrapper.py grass-6.4.2-new/gui/scripts/v.type_wrapper.py ---- grass-6.4.2/gui/scripts/v.type_wrapper.py 2009-05-30 07:36:32.000000000 +0200 -+++ grass-6.4.2-new/gui/scripts/v.type_wrapper.py 2012-08-16 09:33:04.287207393 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - ############################################################################ - # - # MODULE: v.type_wrapper.py (v.type wrapper script) -diff -ur grass-6.4.2/gui/wxpython/gui_modules/menuform.py grass-6.4.2-new/gui/wxpython/gui_modules/menuform.py ---- grass-6.4.2/gui/wxpython/gui_modules/menuform.py 2012-01-04 10:55:50.000000000 +0100 -+++ grass-6.4.2-new/gui/wxpython/gui_modules/menuform.py 2012-08-16 09:33:03.000520822 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - """ - @brief Construct simple wx.Python GUI from a GRASS command interface - description. -diff -ur grass-6.4.2/gui/wxpython/scripts/d.rast3d.py grass-6.4.2-new/gui/wxpython/scripts/d.rast3d.py ---- grass-6.4.2/gui/wxpython/scripts/d.rast3d.py 2010-10-17 19:15:32.000000000 +0200 -+++ grass-6.4.2-new/gui/wxpython/scripts/d.rast3d.py 2012-08-16 09:33:04.083870925 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - # - ############################################################################ - # -diff -ur grass-6.4.2/gui/wxpython/scripts/p.cmd.py grass-6.4.2-new/gui/wxpython/scripts/p.cmd.py ---- grass-6.4.2/gui/wxpython/scripts/p.cmd.py 2010-10-17 19:15:32.000000000 +0200 -+++ grass-6.4.2-new/gui/wxpython/scripts/p.cmd.py 2012-08-16 09:33:03.870534267 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - ############################################################################ - # - # MODULE: p.cmd -diff -ur grass-6.4.2/gui/wxpython/scripts/p.db.py grass-6.4.2-new/gui/wxpython/scripts/p.db.py ---- grass-6.4.2/gui/wxpython/scripts/p.db.py 2010-10-17 19:15:32.000000000 +0200 -+++ grass-6.4.2-new/gui/wxpython/scripts/p.db.py 2012-08-16 09:33:04.047203667 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - ############################################################################ - # - # MODULE: p.db -diff -ur grass-6.4.2/gui/wxpython/scripts/p.mon.py grass-6.4.2-new/gui/wxpython/scripts/p.mon.py ---- grass-6.4.2/gui/wxpython/scripts/p.mon.py 2010-10-17 19:15:32.000000000 +0200 -+++ grass-6.4.2-new/gui/wxpython/scripts/p.mon.py 2012-08-16 09:33:03.940535364 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - ############################################################################ - # - # MODULE: p.mon -diff -ur grass-6.4.2/gui/wxpython/scripts/p.rast.py grass-6.4.2-new/gui/wxpython/scripts/p.rast.py ---- grass-6.4.2/gui/wxpython/scripts/p.rast.py 2010-10-17 19:15:32.000000000 +0200 -+++ grass-6.4.2-new/gui/wxpython/scripts/p.rast.py 2012-08-16 09:33:04.013869835 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - ############################################################################ - # - # MODULE: p.rast -diff -ur grass-6.4.2/gui/wxpython/scripts/p.vect.py grass-6.4.2-new/gui/wxpython/scripts/p.vect.py ---- grass-6.4.2/gui/wxpython/scripts/p.vect.py 2010-10-17 19:15:32.000000000 +0200 -+++ grass-6.4.2-new/gui/wxpython/scripts/p.vect.py 2012-08-16 09:33:03.980535999 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - ############################################################################ - # - # MODULE: p.vect -diff -ur grass-6.4.2/imagery/i.atcorr/create_iwave.py grass-6.4.2-new/imagery/i.atcorr/create_iwave.py ---- grass-6.4.2/imagery/i.atcorr/create_iwave.py 2010-12-22 12:09:24.000000000 +0100 -+++ grass-6.4.2-new/imagery/i.atcorr/create_iwave.py 2012-08-16 09:33:04.430542943 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - """ - Created on Sat Mar 27 11:35:32 2010 - -diff -ur grass-6.4.2/include/Make/Platform.make.in grass-6.4.2-new/include/Make/Platform.make.in ---- grass-6.4.2/include/Make/Platform.make.in 2010-11-08 08:23:48.000000000 +0100 -+++ grass-6.4.2-new/include/Make/Platform.make.in 2012-08-16 09:33:35.484354613 +0200 +diff -ur include/Make/Platform.make.in include/Make/Platform.make.in-new +--- include/Make/Platform.make.in 2010-11-08 08:23:48.000000000 +0100 ++++ include/Make/Platform.make.in-new 2012-08-16 09:33:35.484354613 +0200 @@ -217,7 +217,7 @@ USE_CAIRO = @USE_CAIRO@ @@ -136,192 +10,3 @@ diff -ur grass-6.4.2/include/Make/Platform.make.in grass-6.4.2-new/include/Make/ PYTHONINC = @PYTHONINC@ PYTHONCFLAGS = @PYTHONCFLAGS@ PYTHONLDFLAGS = @PYTHONLDFLAGS@ -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/ctypedescs.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/ctypedescs.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/ctypedescs.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/ctypedescs.py 2012-08-16 09:33:04.987218247 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ''' - ctypesgencore.ctypedescs contains classes to represent a C type. All of them -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/descriptions.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/descriptions.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/descriptions.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/descriptions.py 2012-08-16 09:33:04.883883291 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - ctypesgencore.descriptions contains classes to represent a description of a -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/expressions.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/expressions.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/expressions.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/expressions.py 2012-08-16 09:33:05.023885450 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ''' - The expressions module contains classes to represent an expression. The main -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/__init__.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/__init__.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/__init__.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/__init__.py 2012-08-16 09:33:04.920550527 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - Ctypesgencore is the module that contains the main body of ctypesgen - in fact, -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/messages.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/messages.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/messages.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/messages.py 2012-08-16 09:33:04.503877428 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - ctypesgencore.messages contains functions to display status, error, or warning -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/options.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/options.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/options.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/options.py 2012-08-16 09:33:04.707213885 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - All of the components of ctypegencore require an argument called "options". -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/cdeclarations.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/cdeclarations.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/cdeclarations.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/cdeclarations.py 2012-08-16 09:33:05.393891162 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ''' - This file contains classes that represent C declarations. cparser produces -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/cgrammar.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/cgrammar.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/cgrammar.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/cgrammar.py 2012-08-16 09:33:05.433891816 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - '''This is a yacc grammar for C. - -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/cparser.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/cparser.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/cparser.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/cparser.py 2012-08-16 09:33:05.213888390 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ''' - Parse a C source file. -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/ctypesparser.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/ctypesparser.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/ctypesparser.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/ctypesparser.py 2012-08-16 09:33:05.093886533 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - ''' - ctypesgencore.parser.ctypesparser contains a class, CtypesParser, which is a -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py 2012-08-16 09:33:05.473892425 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - DataCollectingParser subclasses ctypesparser.CtypesParser and builds Description -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/__init__.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/__init__.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/__init__.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/__init__.py 2012-08-16 09:33:05.283889499 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - This package parses C header files and generates lists of functions, typedefs, -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/pplexer.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/pplexer.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/pplexer.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/pplexer.py 2012-08-16 09:33:05.180554533 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - '''Preprocess a C source file using gcc and convert the result into - a token stream -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/preprocessor.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/preprocessor.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/parser/preprocessor.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/parser/preprocessor.py 2012-08-16 09:33:05.250555640 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - '''Preprocess a C source file using gcc and convert the result into - a token stream -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/printer/__init__.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/printer/__init__.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/printer/__init__.py 2011-04-13 14:57:45.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/printer/__init__.py 2012-08-16 09:33:04.640546189 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - This module is the backend to ctypesgen; it contains classes to -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/printer/printer.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/printer/printer.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/printer/printer.py 2011-04-13 14:57:45.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/printer/printer.py 2012-08-16 09:33:04.537211279 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - import os, sys, time - from ctypesgencore.descriptions import * -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/dependencies.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/dependencies.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/dependencies.py 2011-04-13 14:57:45.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/dependencies.py 2012-08-16 09:33:04.743881125 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - The dependencies module determines which descriptions depend on which other -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/__init__.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/__init__.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/__init__.py 2011-04-13 14:57:45.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/__init__.py 2012-08-16 09:33:04.810548840 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - This module contains functions to operate on the DeclarationCollection produced -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/operations.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/operations.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/operations.py 2011-04-13 14:57:45.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/operations.py 2012-08-16 09:33:04.847216053 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - """ - The operations module contains various functions to process the -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/pipeline.py grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/pipeline.py ---- grass-6.4.2/lib/python/ctypes/ctypesgencore/processor/pipeline.py 2011-04-13 14:57:45.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgencore/processor/pipeline.py 2012-08-16 09:33:04.777214964 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - import ctypes, re, os - from ctypesgencore.processor.operations import * -diff -ur grass-6.4.2/lib/python/ctypes/ctypesgen.py grass-6.4.2-new/lib/python/ctypes/ctypesgen.py ---- grass-6.4.2/lib/python/ctypes/ctypesgen.py 2011-04-13 14:57:46.000000000 +0200 -+++ grass-6.4.2-new/lib/python/ctypes/ctypesgen.py 2012-08-16 09:33:05.573893972 +0200 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - - def find_names_in_modules(modules): - names = set() diff --git a/pcr/grass/wxpython2.8-fix.patch b/pcr/grass/wxpython2.8-fix.patch new file mode 100644 index 000000000..a4620bfb5 --- /dev/null +++ b/pcr/grass/wxpython2.8-fix.patch @@ -0,0 +1,11 @@ +# Thanks to czk <msieczka(at)sieczka.org> for providing the patch inside aur/grass64 PKGBUILD +--- ./gui/wxpython/core/globalvar.py 2013-07-10 00:09:27.000000000 +0200 ++++ ./gui/wxpython/core/globalvar.py.wxversion_hack 2014-01-25 15:45:02.781992175 +0100 +@@ -51,6 +51,7 @@ + except ImportError, e: + raise ImportError(e) + # wxversion.select(str(minVersion[0]) + '.' + str(minVersion[1])) ++ wxversion.select('2.8') + wxversion.ensureMinimal(str(minVersion[0]) + '.' + str(minVersion[1])) + import wx + version = wx.version().split(' ')[0] diff --git a/pcr/gringo/PKGBUILD b/pcr/gringo/PKGBUILD new file mode 100644 index 000000000..a02656821 --- /dev/null +++ b/pcr/gringo/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor (Arch) : Vincent Bernardoff <vb@luminar.eu.org> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=gringo +groups=('potassco') +pkgver=4.3.0 +pkgrel=1 +pkgdesc="Grounding tools for (disjunctive) logic programs." +arch=('x86_64' 'i686' 'armv6h' 'armv7h') +url="http://potassco.sourceforge.net/" +license=('GPL3') +depends=() +makedepends=('bison' 're2c' 'scons') +source=( + "http://downloads.sourceforge.net/project/potassco/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz" + "uint_max.patch") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}-source" + patch -p1 < "$srcdir/uint_max.patch" + scons --build-dir=release ${pkgname} +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}-source/build/release" + install -D ${pkgname} ${pkgdir}/usr/bin/${pkgname} +} diff --git a/pcr/gringo/uint_max.patch b/pcr/gringo/uint_max.patch new file mode 100644 index 000000000..b554b9361 --- /dev/null +++ b/pcr/gringo/uint_max.patch @@ -0,0 +1,20 @@ +diff -ur gringo-4.3.0-source/app/gringo/main.cc gringo-4.3.0-source-patched/app/gringo/main.cc +--- gringo-4.3.0-source/app/gringo/main.cc 2014-02-20 18:27:32.000000000 +0100 ++++ gringo-4.3.0-source-patched/app/gringo/main.cc 2014-02-25 15:36:41.432512611 +0100 +@@ -34,6 +34,7 @@ + #include <gringo/version.hh> + #include <gringo/control.hh> + #include <iostream> ++#include <limits> + #include <stdexcept> + #include <program_opts/application.h> + #include <program_opts/typed_value.h> +@@ -263,7 +264,7 @@ + + virtual void run() { + using namespace Gringo; +- grOpts_.verbose = verbose() == UINT_MAX; ++ grOpts_.verbose = verbose() == std::numeric_limits<unsigned int>::max(); + Output::OutputPredicates outPreds; + if (grOpts_.text) { + Output::OutputBase out(std::move(outPreds), std::cout, grOpts_.lpRewrite); diff --git a/pcr/legit/PKGBUILD b/pcr/legit/PKGBUILD new file mode 100644 index 000000000..cefb7ffe9 --- /dev/null +++ b/pcr/legit/PKGBUILD @@ -0,0 +1,28 @@ +# Contributor (Arch) : Jan-Erik Rediger <badboy at archlinux dot us> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=legit +pkgver=0.r228.473d87d +pkgrel=1 +pkgdesc="Sexy Git CLI, Inspired by GitHub for Mac™." +arch=('any') +url="https://github.com/kennethreitz/legit" +license=('BSD') +depends=('python2' 'python2-gitpython' 'python2-clint' 'python2-gitdb' 'python2-args') +makedepends=('git') +source=("http://www.hackers-lab.org/files/legit.tar.gz") + +#pkgver() { +# cd "$srcdir/$pkgname" +# printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +#} + +package() { + cd "$srcdir/$pkgname" + + python2 setup.py install --root=$pkgdir + install -Dm644 LICENSE \ + ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +# vim:set ts=2 sw=2 sts=2 et: diff --git a/pcr/networkmanager-openswan/PKGBUILD b/pcr/networkmanager-openswan/PKGBUILD index 715c578d0..f831e7ad2 100644 --- a/pcr/networkmanager-openswan/PKGBUILD +++ b/pcr/networkmanager-openswan/PKGBUILD @@ -1,8 +1,9 @@ # Contributor (Arch): Marti Raudsepp <marti@juffo.org> +# Maintainer: fauno <fauno@parabola.nu> pkgname=networkmanager-openswan _pkgname=NetworkManager-openswan -pkgver=0.9.8.0 +pkgver=0.9.8.4 pkgrel=1 pkgdesc="NetworkManager plugin for IPSec VPN tunnels" arch=('i686' 'x86_64') @@ -13,10 +14,20 @@ makedepends=('intltool') source=(http://ftp.acc.umu.se/pub/GNOME/sources/$_pkgname/0.9/$_pkgname-$pkgver.tar.xz) md5sums=('6a373868f85ac3b7c953f7fd6c76e637') +prepare() { + cd "$srcdir/$_pkgname-$pkgver" +# sed -e "s/gnome_keyring_memory_free/gcr_secure_memory_free/g" \ +# -e "s/gnome_keyring_memory_strdup/gcr_secure_memory_strdup/g" \ +# -e "s/gnome_keyring_find_itemsv_sync/secret_service_search_sync/g" \ +# -i auth-dialog/main.c +} + build() { cd "$srcdir/$_pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/networkmanager + + sed -e "s/-Werror//g" -i auth-dialog/Makefile make } @@ -24,3 +35,4 @@ package() { cd "$srcdir/$_pkgname-$pkgver" make DESTDIR="$pkgdir" install } +md5sums=('6cb2b64bc79c4174856613d077667b66') diff --git a/pcr/nova/PKGBUILD b/pcr/nova/PKGBUILD index 524d62152..4da77e669 100644 --- a/pcr/nova/PKGBUILD +++ b/pcr/nova/PKGBUILD @@ -1,55 +1,35 @@ -# Contributor (Arch): Josh Chase <jcjoshuachase@gmail.com> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Maintainer (Arch) : Limao Luo <luolimao+AUR@gmail.com> +# Contributor (Arch) : Josh Chase <jcjoshuachase@gmail.com> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=nova -pkgver=2012.1.2 -_clientname=python-novaclient -_clientver=2.8.0 -pkgrel=1.1 +_relname=icehouse +pkgver=2014.1.b2 +pkgrel=1 pkgdesc="OpenStack cloud computing fabric controller" -arch=('any') -license=('custom') -url="https://launchpad.net/nova" -depends=('python2' - 'python2-cheetah' - 'python2-simplejson' - 'python2-prettytable' - 'python2-amqplib' - 'python2-carrot' - 'python2-lockfile' - 'python2-daemon' - 'python2-gflags' - 'python2-netaddr' - 'glance' - 'python2-suds' - 'python2-paramiko' - 'python2-feedparser' - 'python2-babel' ) -makedepends=('python2-distribute') -source=("https://launchpad.net/nova/essex/2012.1.2/+download/nova-2012.1.2.tar.gz" - "http://pypi.python.org/packages/source/${_clientname:0:1}/$_clientname/$_clientname-$_clientver.tar.gz") +arch=(any) +url=https://launchpad.net/nova +license=(custom) +depends=(glance python2-amqplib python2-babel python2-carrot python2-cheetah python2-daemon + python2-feedparser python2-gflags python2-lockfile python2-novaclient python2-paramiko + python2-suds) +makedepends=(python2-setuptools) +source=($url/$_relname/$_relname-2/+download/$pkgname-$pkgver.tar.gz) -build() { - cd $srcdir - - find . -type f -exec sed -i -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|' \ - -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' {} + - - cd $srcdir/$_clientname-$_clientver - python2 setup.py build +prepare() { + find $pkgname-$pkgver -type f -exec sed -ri 's:^#!/usr/bin/(env )?python$:&2:' '{}' \; +} - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py build +build() { + cd $pkgname-$pkgver/ + python2 setup.py build } package() { - cd $srcdir/$_clientname-$_clientver - python2 setup.py install --root=$pkgdir + cd $pkgname-$pkgver/ + python2 setup.py install --root="$pkgdir" --optimize=1 - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -dm600 "$pkgdir"/etc/$pkgname - install -Dm600 etc/$pkgname/* "$pkgdir"/etc/$pkgname/ - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -d "$pkgdir"/etc/ + cp -r etc/ "$pkgdir"/etc/$pkgname/ + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/pcr/ocaml-biniou/PKGBUILD b/pcr/ocaml-biniou/PKGBUILD new file mode 100644 index 000000000..c5b6b74dc --- /dev/null +++ b/pcr/ocaml-biniou/PKGBUILD @@ -0,0 +1,31 @@ +# Contributor (Arch) : Leonard de Ruijter <leonard@aur.archlinux.org> +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com> +# Contributor (Arch) : Justin Davis <jrcd 83 at gmail> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-biniou +_oname=biniou +pkgver=1.0.8 +pkgrel=3 +pkgdesc='A binary data serialization format inspired by JSON' +arch=('i686' 'x86_64') +options=('!strip' '!makeflags' 'staticlibs') +license=('BSD') +depends=('glibc') +makedepends=('ocaml-easy-format' 'ocaml-findlib') +url='http://mjambon.com/biniou.html' +source=("http://mjambon.com/releases/${_oname}/${_oname}-${pkgver}.tar.gz") + +build() { + cd $srcdir/$_oname-$pkgver + make && make doc +} + +package() { + cd $srcdir/$_oname-$pkgver + mkdir -p $pkgdir/usr/bin $pkgdir$(ocamlfind printconf destdir) + make OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) install BINDIR="${pkgdir}/usr/bin" + install -dm755 "${pkgdir}/usr/share/doc/$pkgname" + install -t "${pkgdir}/usr/share/doc/$pkgname" doc/* +} diff --git a/pcr/ocaml-curl/PKGBUILD b/pcr/ocaml-curl/PKGBUILD new file mode 100644 index 000000000..0bc9669b4 --- /dev/null +++ b/pcr/ocaml-curl/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com> +# Contributor (Arch) : Justin Davis <jrcd 83 at gmail> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-curl +pkgver=0.5.3 +pkgrel=3 +pkgdesc="OCaml bindings to libcurl networking library" +arch=('i686' 'x86_64') +license=('BSD') +depends=('ocaml' 'curl>=7.9.8') +makedepends=('ocaml-findlib') +options=(!strip !makeflags) +url='http://sourceforge.net/projects/ocurl/' +source=("http://sourceforge.net/projects/ocurl/files/ocurl/$pkgver/ocurl-$pkgver.tgz") + +build() { + cd "$srcdir/ocurl" + ./configure --prefix /usr + make +} + +package() { + cd "$srcdir/ocurl" + export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" + install -dm 755 "$OCAMLFIND_DESTDIR/stublibs" + make install FINDLIB=ocamlfind +} diff --git a/pcr/ocaml-easy-format/PKGBUILD b/pcr/ocaml-easy-format/PKGBUILD new file mode 100644 index 000000000..00a334d41 --- /dev/null +++ b/pcr/ocaml-easy-format/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor (Arch) : Leonard de Ruijter <leonard@aur.archlinux.org> +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com> +# Contributor (Arch) : kfgz <kfgz at interia pl> +# Contributor (Arch) : Justin Davis <jrcd 83 at gmail> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-easy-format +_oname=easy-format +pkgver=1.0.2 +pkgrel=1 +pkgdesc="Data pretty printing made easy" +url="http://mjambon.com/easy-format.html" +arch=('i686' 'x86_64') +options=('!strip' 'staticlibs') +license=('BSD') +makedepends=('ocaml-findlib') +source=(http://mjambon.com/releases/${_oname}/${_oname}-${pkgver}.tar.gz) + +build() { + cd $srcdir/$_oname-$pkgver + make +} + +package() { + cd $srcdir/$_oname-$pkgver + mkdir -p ${pkgdir}$(ocamlfind printconf destdir) + make OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) install +} diff --git a/pcr/ocaml-extlib/PKGBUILD b/pcr/ocaml-extlib/PKGBUILD new file mode 100644 index 000000000..38193a1c7 --- /dev/null +++ b/pcr/ocaml-extlib/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor (Arch) : Patryk Kowalczyk < patryk at kowalczyk dot ws> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-extlib +pkgver=1.5.4 +pkgrel=2 +pkgdesc="Extends the OCaml standard library" +arch=('i686' 'x86_64') +url="http://code.google.com/p/ocaml-extlib/" +license=('LGPL') +depends=('ocaml') +makedepends=('ocaml-findlib') +source=(http://ocaml-extlib.googlecode.com/files/extlib-${pkgver}.tar.gz) + + +build() { + cd ${srcdir}/extlib-${pkgver} + + make all + make opt + + sed -i 's/cp odoc_style.css/#cp odoc_style.css/g' Makefile + sed -i 's/ocamldoc -sort -html/ocamldoc -sort -keep-code -html -colorize-code/g' Makefile + make doc + + # Install additional files + sed -i 's/ocamlfind install extlib META/ocamlfind install extlib META *.cmo *.cmx *.ml/g' Makefile +} + +package () { + _DOCDIR="${pkgdir}/usr/share/doc/ocaml-extlib" + + cd ${srcdir}/extlib-${pkgver} + + export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" + mkdir -p "${OCAMLFIND_DESTDIR}" + make install + + # Install doc + mkdir -p $_DOCDIR + cp -r doc/* $_DOCDIR/ +} + diff --git a/pcr/ocaml-lwt/PKGBUILD b/pcr/ocaml-lwt/PKGBUILD new file mode 100644 index 000000000..d6c5e6ae5 --- /dev/null +++ b/pcr/ocaml-lwt/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com +# Contributor (Arch) : serp <serp256 at gmail dot com> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname="ocaml-lwt" +pkgver=2.4.4 +pkgrel=1 +pkgdesc="A library for cooperative threads in OCaml" +arch=('i686' 'x86_64') +url="http://ocsigen.org/lwt/" +license=('LGPL') +depends=('ocaml>=3.12.0' 'ocaml-compiler-libs' + 'ocaml-react' 'ocaml-text' 'ocaml-ssl' 'libev' 'glibc') +makedepends=('ocaml-findlib') +source=(https://github.com/ocsigen/lwt/archive/$pkgver.tar.gz) +#source=(http://ocsigen.org/download/lwt-$pkgver.tar.gz) +options=(!strip !makeflags staticlibs) +build() { + cd "$srcdir/${pkgname/ocaml-/}-$pkgver" + + echo '<src/top/*.*>: use_compiler_libs' >> _tags + # What requires what? + # --enable-glib glibc + # --enable-react ocaml-react + # --enable-ssl ocaml-ssl + # --enable-text ocaml-text + # --enable-toplevel ocaml-compiler-libs + + ./configure --enable-react \ + --enable-glib \ + --enable-ssl \ + --enable-text \ + --enable-toplevel \ + --disable-debug \ + --prefix /usr \ + --destdir $pkgdir + make || return 1 +} + + +package() { + cd "$srcdir/${pkgname/ocaml-/}-$pkgver" + + export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" + + mkdir -p "$OCAMLFIND_DESTDIR/stublibs" + make install + install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/ocaml-ounit/PKGBUILD b/pcr/ocaml-ounit/PKGBUILD new file mode 100644 index 000000000..da4ed250d --- /dev/null +++ b/pcr/ocaml-ounit/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor (Arch) : Marek Kubica <marek@xivilization.net> +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com> +# Contributor (Arch) : Thomas S Hatch <thatch45 at gmail dot com> +# Contributor (Arch) : Sebastian Wiesner <lunaryorn googlemail com> +# Contributor (Arch) : Benjamin Andresen <benny(at)klapmuetz(dot)org> +# Contributor (Arch) : Sylvester Johansson <syljo361(at)gmail(dot)org> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-ounit +_pkgname=ounit +pkgver=2.0.0 +pkgrel=1 +arch=('i686' 'x86_64') +license=('MIT') +pkgdesc="Unit testing framework for OCaml" +url="http://ounit.forge.ocamlcore.org" +depends=('ocaml') +makedepends=('ocaml-findlib') +options=('!strip') +source=("http://forge.ocamlcore.org/frs/download.php/1258/$_pkgname-$pkgver.tar.gz") + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + ./configure --disable-debug --prefix /usr --destdir "$pkgdir" + make all +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" + install -dm 755 "$OCAMLFIND_DESTDIR" + make install + install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/pcr/ocaml-react/PKGBUILD b/pcr/ocaml-react/PKGBUILD new file mode 100644 index 000000000..513ff2acf --- /dev/null +++ b/pcr/ocaml-react/PKGBUILD @@ -0,0 +1,28 @@ +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com> +# Contributor (Arch) : serp <serp 256 at gmail dot com> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-react +pkgver=0.9.4 +pkgrel=2 +pkgdesc="An OCaml module for functional reactive programming" +arch=('i686' 'x86_64') +url="http://erratique.ch/software/react" +license=('BSD') +depends=('ocaml') +makedepends=('ocaml-findlib') +source=(http://erratique.ch/software/react/releases/react-$pkgver.tbz) + +build() { + cd "$srcdir/react-$pkgver" + ocaml setup.ml -configure --prefix /usr --destdir $pkgdir --disable-tests + ocaml setup.ml -build +} + +package() { + cd "$srcdir/react-$pkgver" + export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" + install -dm755 "$OCAMLFIND_DESTDIR" + ocaml setup.ml -install +} diff --git a/pcr/ocaml-ssl/PKGBUILD b/pcr/ocaml-ssl/PKGBUILD new file mode 100644 index 000000000..b8af1a731 --- /dev/null +++ b/pcr/ocaml-ssl/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor (Arch) : Denis Wernert <denis@wernert.info> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-ssl +pkgver=0.4.6 +pkgrel=3 +pkgdesc="OCaml SSL Library" +arch=('i686' 'x86_64') +url="http://savonet.sourceforge.net/" +license=('MIT') +depends=('ocaml') +makedepends=('openssl' 'ocaml-findlib') +source=(ocaml-ssl-0.4.6.tar.gz::http://sourceforge.net/projects/savonet/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz/download) +options=(!libtool !strip zipman !makeflags) + + +build() { + cd $pkgname-$pkgver + ./configure --prefix /usr + make +} + +package() { + OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" + cd $pkgname-$pkgver + mkdir -p $OCAMLFIND_DESTDIR/stublibs + OCAMLFIND_INSTFLAGS="-destdir $OCAMLFIND_DESTDIR -ldconf /dev/null" make install +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/ocaml-text/PKGBUILD b/pcr/ocaml-text/PKGBUILD new file mode 100644 index 000000000..436b15727 --- /dev/null +++ b/pcr/ocaml-text/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor (Arch) : Taylor Venable <taylor@metasyntax.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +srcname='ocaml-text' +pkgname="${srcname}" +pkgver='0.6' +pkgrel=1 +pkgdesc='A library for dealing with text in a convenient way' +arch=('i686' 'x86_64') +url='http://forge.ocamlcore.org/projects/ocaml-text/' +license=('BSD') +depends=('ocaml>=3.11.0') +makedepends=('ocaml-findlib') +source=('http://forge.ocamlcore.org/frs/download.php/937/ocaml-text-0.6.tar.gz') +options=('!strip') + +build() { + cd "$srcdir/${srcname}-${pkgver}" + ./configure + + env DESTDIR="$pkgdir" \ + OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ + make +} + + +package() { + mkdir -p "$pkgdir/$(ocamlfind printconf destdir)" + mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs" + cd "$srcdir/${srcname}-${pkgver}" + env DESTDIR="$pkgdir" \ + OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ + make install + install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/ocaml-xmlm/PKGBUILD b/pcr/ocaml-xmlm/PKGBUILD new file mode 100644 index 000000000..2476a3e9b --- /dev/null +++ b/pcr/ocaml-xmlm/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor (Arch) : charlesthehawk -- yahoo -- com +# Contributor (Arch) : Gregory BELLIER <gregory.bellier -- gmail -- com> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-xmlm +pkgver=1.1.1 +pkgrel=1 +pkgdesc="OCaml xml manipulation module" +arch=('i686' 'x86_64') +url="http://erratique.ch/software/xmlm/" +license=('BSD') +makedepends=('ocaml ocaml-findlib') +options=('!strip') +install= +source=(http://erratique.ch/software/xmlm/releases/xmlm-$pkgver.tbz) + +build() { + + cd "$srcdir/xmlm-$pkgver" + ocaml setup.ml -configure --prefix ${pkgdir}/usr + ocaml setup.ml -build +} + +package() { + cd "${srcdir}/xmlm-${pkgver}" + mkdir -p ${pkgdir}$(ocamlfind printconf destdir) + env OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) \ + ocaml setup.ml -install +} + +# vim:set ts=2 sw=2 et: + diff --git a/pcr/ocaml-yojson/PKGBUILD b/pcr/ocaml-yojson/PKGBUILD new file mode 100644 index 000000000..2e5c9d2bb --- /dev/null +++ b/pcr/ocaml-yojson/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor (Arch) : Leonard de Ruijter <leonard@aur.archlinux.org> +# Contributor (Arch) : Serge Zirukin <ftrvxmtrx@gmail.com> +# Contributor (Arch) : Sergei Lebedev <superbobry@gmail.com> +# Contributor (Arch) : Justin Davis <jrcd 83 at gmail> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=ocaml-yojson +_oname=yojson +pkgver=1.1.8 +pkgrel=1 +pkgdesc='An optimized parsing and printing library for JSON' +arch=('i686' 'x86_64') +options=('!strip' 'staticlibs') +license=('BSD') +depends=('ocaml-easy-format') +makedepends=('ocaml-biniou' 'ocaml-findlib' 'cppo') +url='http://mjambon.com/yojson.html' +source=("http://mjambon.com/releases/${_oname}/${_oname}-${pkgver}.tar.gz") +options=(!makeflags) + +build() { + cd $srcdir/$_oname-$pkgver + make && make doc +} + +package() { + cd $srcdir/$_oname-$pkgver + mkdir -p $pkgdir/usr/bin $pkgdir$(ocamlfind printconf destdir) + make OCAMLFIND_DESTDIR=${pkgdir}$(ocamlfind printconf destdir) install BINDIR="${pkgdir}/usr/bin" + install -dm755 "${pkgdir}/usr/share/doc/$pkgname" + install -t "${pkgdir}/usr/share/doc/$pkgname" doc/* +} diff --git a/pcr/opam/PKGBUILD b/pcr/opam/PKGBUILD new file mode 100644 index 000000000..517153048 --- /dev/null +++ b/pcr/opam/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor (Arch) : Vincent B. <vb@luminar.eu.org> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=opam +pkgver=1.1.1 +pkgrel=1 +pkgdesc="OCaml Package Manager" +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +url="http://opam.ocamlpro.com" +license=('GPL') +depends=('ocaml' 'aspcud') +source=(http://www.ocamlpro.com/pub/${pkgname}-full-${pkgver}.tar.gz) +build() { + cd ${srcdir}/${pkgname}-full-${pkgver} + ./configure --prefix=/usr + make +} + +package() { + cd ${srcdir}/${pkgname}-full-${pkgver} + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/openswan/PKGBUILD b/pcr/openswan/PKGBUILD index 3d20cb08d..4a81ca23b 100644 --- a/pcr/openswan/PKGBUILD +++ b/pcr/openswan/PKGBUILD @@ -1,22 +1,23 @@ # Contributor (Arch): xjpvictor Huang <ke [AT] xjpvictor [DOT] info> pkgname=openswan -pkgver=2.6.38 -pkgrel=2 +pkgver=2.6.41 +pkgrel=1 pkgdesc="Open Source implementation of IPsec for the Linux operating system" url="http://www.openswan.org" license=('GPL' 'custom') arch=('i686' 'x86_64') depends=('iproute2>=2.6.8' 'gmp' 'perl') +optdepends=('python2') makedepends=('flex' 'bison') conflicts=('ipsec-tools') backup=(etc/ipsec.conf \ etc/ipsec.d/policies/{block,clear,clear-or-private,private,private-or-clear}) source=(http://download.openswan.org/openswan/openswan-$pkgver.tar.gz - openswan openswan.service) prepare() { cd $srcdir/openswan-$pkgver + # Change install paths to Arch defaults sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|;s|)/sbin|)/bin|' Makefile.inc } @@ -24,17 +25,14 @@ prepare() { build() { cd $srcdir/openswan-$pkgver - # Change install paths to Arch defaults - sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|;s|)/sbin|)/bin|' Makefile.inc - make USE_XAUTH=true USE_OBJDIR=true programs } package() { - cd $srcdir/openswan-$pkgver - # Create /etc/rc.d for init script, and license directory mkdir -p $pkgdir/{etc/rc.d,usr/share/licenses/openswan} + + cd $srcdir/openswan-$pkgver make DESTDIR=$pkgdir install # Change permissions in /var @@ -44,13 +42,13 @@ package() { cp LICENSE $pkgdir/usr/share/licenses/openswan # Install init script - install -Dm755 ../openswan $pkgdir/etc/rc.d/openswan install -Dm644 ../openswan.service $pkgdir/usr/lib/systemd/system/openswan.service mkdir $pkgdir/usr/lib/systemd/scripts/ - cp $pkgdir/etc/rc.d/ipsec $pkgdir/usr/lib/systemd/scripts/ipsec + mv $pkgdir/etc/rc.d/ipsec $pkgdir/usr/lib/systemd/scripts/ipsec # fix manpages mv $pkgdir/usr/man $pkgdir/usr/share/ + # fix python2 + sed -i '1s|python|python2|' $pkgdir/usr/lib/openswan/verify } -md5sums=('13073eb5314b83a31be88e4117e8bbcd' - '543d84162761b9cc9ec319e938c4dd2a' +md5sums=('da2e8b02ecc30a408cc5766767fef84f' 'd8b465c10838c72e31329d65011002b6') diff --git a/pcr/python-gensim/PKGBUILD b/pcr/python-gensim/PKGBUILD new file mode 100755 index 000000000..e00cab736 --- /dev/null +++ b/pcr/python-gensim/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=python-gensim +pkgver=0.10.0 +pkgrel=1 +pkgdesc="Python framework for fast Vector Space Modelling" +arch=('i686' 'x86_64') +url="http://nlp.fi.muni.cz/projekty/gensim/" +license=('LGPL') +depends=('python-scipy') +makedepends=('gcc' 'setuptools') +conflicts=() +source=("http://pypi.python.org/packages/source/g/gensim/gensim-${pkgver}.tar.gz") + +build() { + unset LDFLAGS + unset FFLAGS + + cd ${srcdir}/gensim-${pkgver} + + # python2 fix + for file in $(find . -name '*.py' -print); do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + + #python2 setup.py test + python2 setup.py build + python2 setup.py install --prefix=/usr --root=${pkgdir} + #install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt TODO: where to get license? +} diff --git a/pcr/python2-args/PKGBUILD b/pcr/python2-args/PKGBUILD new file mode 100644 index 000000000..e37d864c7 --- /dev/null +++ b/pcr/python2-args/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor (Arch) : Jan-Erik Rediger <badboy at archlinux dot us> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=python2-args +_pkgname=args +pkgver=0.r37.36c727b +pkgrel=1 +pkgdesc="Command Arguments for Humans." +arch=('any') +url="https://pypi.python.org/pypi/args/" +license=('BSD') +depends=('python2' 'git' 'python2-setuptools') +source=("$pkgname::git+https://github.com/kennethreitz/args") + +pkgver() { + cd "$srcdir/$pkgname" + printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + + python2 setup.py install --root=$pkgdir + + install -Dm644 LICENSE \ + ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +# vim:set ts=2 sw=2 sts=2 et: diff --git a/pcr/python2-async/PKGBUILD b/pcr/python2-async/PKGBUILD new file mode 100644 index 000000000..1799746f3 --- /dev/null +++ b/pcr/python2-async/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor (Arch) : Jon Bergli Heier <snakebite@jvnv.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=python2-async +pkgver=0.6.1 +pkgrel=1 +pkgdesc="Async aims to make writing asyncronous processing easier." +arch=('i686' 'x86_64') +url="http://pypi.python.org/pypi/async" +license=('BSD') +depends=('python2') +source=("http://pypi.python.org/packages/source/a/async/async-${pkgver}.tar.gz") + +package() { + cd "$srcdir/async-$pkgver" + python2 setup.py install --root="$pkgdir/" || return 1 +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-clint/PKGBUILD b/pcr/python2-clint/PKGBUILD new file mode 100644 index 000000000..8b69cc2be --- /dev/null +++ b/pcr/python2-clint/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor (Arch) : (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com> +# Contributor (Arch) : Alexander <rodseth@gmail.com> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackes.camp> + +pkgname=python2-clint +pkgver=0.3.7 +pkgrel=1 +pkgdesc="Module for developing commandline applications" +arch=('any') +url="http://pypi.python.org/pypi/clint/" +license=('ISC') +depends=('python2') +conflicts=('python2-clint-git') +source=("http://pypi.python.org/packages/source/c/clint/clint-$pkgver.tar.gz") + +package() { + cd "$srcdir/clint-$pkgver" + + python2 setup.py install --install-data="/usr/share/doc/$pkgname" \ + --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + + diff --git a/pcr/python2-gitdb/PKGBUILD b/pcr/python2-gitdb/PKGBUILD new file mode 100644 index 000000000..f0cde5926 --- /dev/null +++ b/pcr/python2-gitdb/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor (Arch) : Jon Bergli Heier <snakebite@jvnv.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=python2-gitdb +pkgver=0.5.4 +pkgrel=1 +pkgdesc="IO of git-style object databases" +arch=('i686' 'x86_64') +url="http://pypi.python.org/pypi/gitdb" +license=('BSD') +makedepends=('python2' 'python2-distribute') +depends=('python2' 'python2-async>=0.6.1' 'python2-smmap>=0.8.0') +source=("http://pypi.python.org/packages/source/g/gitdb/gitdb-${pkgver}.tar.gz") + +package() { + cd "$srcdir/gitdb-$pkgver" + python2 setup.py install --root="$pkgdir/" || return 1 +} +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-gitpython/PKGBUILD b/pcr/python2-gitpython/PKGBUILD new file mode 100644 index 000000000..5051583c5 --- /dev/null +++ b/pcr/python2-gitpython/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor (Arch) : Jon Bergli Heier <snakebite@jvnv.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=python2-gitpython +pkgver=0.3.2_rc1 +_pkgver=0.3.2.RC1 +pkgrel=2 +pkgdesc="A python library used to interact with Git repositories" +arch=('any') +url="http://gitorious.org/git-python" +license=('BSD') +depends=('python2' 'git' 'python2-gitdb>=0.5.1') +makedepends=('python2' 'python2-distribute') +conflicts=('gitpython-git' 'gitpython') +replaces=('gitpython') +source=("http://pypi.python.org/packages/source/G/GitPython/GitPython-${_pkgver}.tar.gz") + +package() { + cd "$srcdir/GitPython-${_pkgver}" + python2 setup.py install --root="$pkgdir/" --optimize=1 || return 1 + install -D -m 644 LICENSE "$pkgdir"/usr/share/licenses/gitpython/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-novaclient/PKGBUILD b/pcr/python2-novaclient/PKGBUILD new file mode 100644 index 000000000..e6e09952c --- /dev/null +++ b/pcr/python2-novaclient/PKGBUILD @@ -0,0 +1,29 @@ +# Contributor (Arch) : Troy C < rstrox -ta yahoo -tod com > +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=python2-novaclient +pkgver=2.17.0 +pkgrel=3 +pkgdesc="Client library for OpenStack Nova API." +arch=('any') +url="https://github.com/openstack/python-novaclient" +license=('GPL') +depends=('python2' 'python2-pip' 'python2-babel' 'python2-setuptools' 'python2-iso8601' 'python2-prettytable' 'python2-simplejson' +'python2-requests' 'python2-pbr>=0.6' 'python2-six') +optdepends=('bash-completion: for command line completion') +makedepends=('python2-setuptools') +provides=("$pkgname=$pkgver") +source=("http://pypi.python.org/packages/source/p/python-novaclient/python-novaclient-$pkgver.tar.gz") + +build() { + cd "$srcdir/python-novaclient-$pkgver" + python2 setup.py build + echo ${pkgver} > versioninfo +} + +package() { + cd "$srcdir/python-novaclient-$pkgver" + install -D -m644 versioninfo ${pkgdir}/usr/lib/python2.7/site-packages/novaclient/versioninfo + install -D -m644 tools/nova.bash_completion ${pkgdir}/etc/bash_completion.d/novaclient + python2 setup.py install --root=${pkgdir} +} diff --git a/pcr/python2-smmap/PKGBUILD b/pcr/python2-smmap/PKGBUILD new file mode 100644 index 000000000..2eb7a009c --- /dev/null +++ b/pcr/python2-smmap/PKGBUILD @@ -0,0 +1,20 @@ +# Contributor (Arch) : Jon Bergli Heier <snakebite@jvnv.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname='python2-smmap' +pkgver=0.8.2 +pkgrel=1 +pkgdesc="A pure git implementation of a sliding window memory map manager" +arch=('i686' 'x86_64') +url="http://pypi.python.org/pypi/smmap" +license=('BSD') +makedepends=('python2' 'python2-distribute') +depends=('python2') +source=("http://pypi.python.org/packages/source/s/smmap/smmap-${pkgver}.tar.gz") + +package_python2-smmap() { + cd "$srcdir/smmap-$pkgver" + python2 setup.py install --root="$pkgdir/" || return 1 +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-vcstools/PKGBUILD b/pcr/python2-vcstools/PKGBUILD new file mode 100644 index 000000000..19581f3f1 --- /dev/null +++ b/pcr/python2-vcstools/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor (Arch) : Georg Bremer <pkgbuild@dschoordsch.de> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname='python2-vcstools' +pkgver=0.1.33 +pkgrel=1 +pkgdesc="" +arch=('any') +url="http://ros.org/" +license=('BSD') +groups=() +depends=('python2' 'python2-yaml') +makedepends=('python2-setuptools') +optdepends=() +provides=() +conflicts=('vcstools') +replaces=('vcstools') +backup=() +options=() +install= +source=("http://download.ros.org/downloads/vcstools/vcstools-$pkgver.tar.gz") + + +noextract=() + +build() { + echo "" +} + +package() { + cd "$srcdir/vcstools-$pkgver" + python2 setup.py install --root "$pkgdir" +} +# vim:set ts=2 sw=2 et: diff --git a/pcr/python2-wstool/PKGBUILD b/pcr/python2-wstool/PKGBUILD new file mode 100644 index 000000000..731f4ad61 --- /dev/null +++ b/pcr/python2-wstool/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor (Arch) : Georg Bremer <pkgbuild@dschoordsch.de> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname='python2-wstool' +pkgver=0.1.1 +pkgrel=1 +pkgdesc="wstool provides commands to manage several local SCM repositories (supports git, mercurial, subversion, bazaar) based on a single workspace definition file (.rosinstall)." +arch=('any') +url="http://ros.org/" +license=('BSD') +groups=() +depends=('python2' 'python2-yaml' 'python2-vcstools') +makedepends=('python2-setuptools') +optdepends=() +provides=('wstool') +conflicts=('wstool') +replaces=() +backup=() +options=() +install= +source=("http://download.ros.org/downloads/wstool/wstool-$pkgver.tar.gz") + +noextract=() + +build() { + echo "" +} + +package() { + cd "$srcdir/wstool-$pkgver" + python2 setup.py install --root "$pkgdir" +} +# vim:set ts=2 sw=2 et: diff --git a/pcr/quack/PKGBUILD b/pcr/quack/PKGBUILD index a55291463..0c7a9455e 100644 --- a/pcr/quack/PKGBUILD +++ b/pcr/quack/PKGBUILD @@ -1,9 +1,9 @@ -# Contributor (Arch): Geoffrey Teale <tealeg@member.fsf.org> -# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Contributor (Arch) : Geoffrey Teale <tealeg@member.fsf.org> +# Contributor (Arch) : Stefan Husmann <stefan-husmann@t-online.de> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=quack -pkgver=0.45 +pkgver=0.47 pkgrel=1 pkgdesc="[Emacs] enhanced support for editing and running Scheme code." url="http://www.neilvandyke.org/quack" @@ -13,7 +13,6 @@ depends=('emacs') makedepends=('emacs') install=quack.install source=("http://www.neilvandyke.org/${pkgname}/${pkgname}.el") -md5sums=('40c52d0076c95c125e57ef6496ee881e') EMACS=emacs # or sxemacs, or xemacs build() { diff --git a/pcr/reaver-wps-svn/PKGBUILD b/pcr/reaver-wps-svn/PKGBUILD new file mode 100644 index 000000000..98a3e99db --- /dev/null +++ b/pcr/reaver-wps-svn/PKGBUILD @@ -0,0 +1,44 @@ +# Contributor (Arch) : Xiao-Long Chen <chenxiaolong@cxl.epac.to> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=reaver-wps-svn +pkgver=119 +pkgrel=1 +pkgdesc="Brute force attack against Wifi Protected Setup (WPS) registrar PINs in order to recover WPA/WPA2 passphrases" +arch=('i686' 'x86_64' 'mips64el' 'armv6h') +url="http://code.google.com/p/reaver-wps/" +license=('GPL') +depends=('libpcap' 'sqlite') +makedepends=('subversion') +provides=('reaver-wps') +conflicts=('reaver-wps') +source=('svn+http://reaver-wps.googlecode.com/svn/trunk/') + +pkgver() { + cd "${SRCDEST}/trunk/" + svnversion +} + +build() { + cd "${srcdir}/trunk/src/" + + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + cd "${srcdir}/trunk/" + pushd src + install -dm755 "${pkgdir}/usr/bin/" + install -m755 reaver "${pkgdir}/usr/bin/" + install -m755 wash "${pkgdir}/usr/bin/" + install -dm755 "${pkgdir}/etc/reaver/" + install -m644 reaver.db "${pkgdir}/etc/reaver/" + popd + pushd docs + install -dm755 "${pkgdir}/usr/share/man/man1/" + install -m644 reaver.1.gz "${pkgdir}/usr/share/man/man1/" + popd +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/rosinstall/PKGBUILD b/pcr/rosinstall/PKGBUILD index 0dcfeb95b..71077bc23 100644 --- a/pcr/rosinstall/PKGBUILD +++ b/pcr/rosinstall/PKGBUILD @@ -1,21 +1,26 @@ -# Contributor (Arch): Georg Bremer <pkgbuild@dschoordsch.de> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Maintainer (Arch) : Georg Bremer <pkgbuild@dschoordsch.de> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgdesc='Tool to download/boostrap the ROS stack' url='http://www.ros.org/' pkgname='rosinstall' -pkgver='0.6.20' +pkgver='0.7.3' pkgrel='1' arch=('i686' 'x86_64') license=('BSD') -depends=('python2' 'cmake' 'wget' 'vcstools' - 'git' 'python2-distribute' 'python2-yaml') - -source=("http://pr.willowgarage.com/downloads/$pkgname/$pkgname-$pkgver.tar.gz") +depends=('python2' 'cmake' 'wget' 'python2-vcstools' + 'git' 'python2-distribute' 'python2-yaml' 'python2-wstool') +optdepends=('python2-catkin_pkg: for roslocate' +'python2-rosdistro: for roslocate') +source=("http://download.ros.org/downloads/$pkgname/$pkgname-$pkgver.tar.gz") build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's/env python /env python2 /' src/rosinstall/setupfiles.py +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" python2 setup.py install --root=$pkgdir --optimize=1 } diff --git a/pcr/shogun/PKGBUILD b/pcr/shogun/PKGBUILD new file mode 100644 index 000000000..9439143e0 --- /dev/null +++ b/pcr/shogun/PKGBUILD @@ -0,0 +1,38 @@ +# Contributor (Arch) : Fabian Yamaguchi <fabian.yamaguchi@cs.uni-goettingen.de> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +# Based on shogun-git package by +# Alex Babescu <alex.babescu@gmail.com> + +pkgname=shogun +pkgver=3.2.0 +pkgrel=1 +pkgdesc="Shogun - A Large Scale Machine Learning Toolbox" +arch=('i686' 'x86_64') +url="http://www.shogun-toolbox.org" +license=('GPLv3') +depends=('python2' 'python2-numpy' 'swig' 'hdf5' 'blas' 'lapack') +makedepends=('git' 'python2' 'lzo2' 'glpk' 'gcc' 'make' 'pkg-config' 'libxml2') +optdepends=('atlas-lapack' 'octave' 'doxygen' 'r') +provides=('shogun') +source=("http://shogun-toolbox.org/archives/shogun/releases/3.2/sources/shogun-3.2.0.tar.bz2") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + # msg "Starting make..." + + # python2 fix + # sed -i 's/PYTHON=python/PYTHON=python2/g' src/configure + # sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + # -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + # $(find ./ -name '*.py') + + #cd src + #./configure --prefix=/usr + #make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/src" + make DESTDIR="$pkgdir/" .r-install.sh +} diff --git a/pcr/snort/PKGBUILD b/pcr/snort/PKGBUILD index a92d8cb43..78eaa633e 100644 --- a/pcr/snort/PKGBUILD +++ b/pcr/snort/PKGBUILD @@ -1,37 +1,34 @@ -# $Id: PKGBUILD 78820 2012-10-25 06:47:28Z foutrelis $ -# Contributor (Arch): Lukas Fleischer <archlinux at cryptocrack dot de> -# Contributor (Arch): Hugo Doria <hugo@archlinux.org> -# Contributor (Arch): Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> -# Contributor (Arch): dorphell <dorphell@archlinux.org> -# Contributor (Arch): Gregor Ibic <gregor.ibic@intelicom.si> -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Contributor (Arch) : M0Rf30 +# Contributor (Arch) : Lukas Fleischer <archlinux at cryptocrack dot de> +# Contributor (Arch) : Hugo Doria <hugo@archlinux.org> +# Contributor (Arch) : Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> +# Contributor (Arch) : dorphell <dorphell@archlinux.org> +# Contributor (Arch) : Gregor Ibic <gregor.ibic@intelicom.si> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=snort -pkgver=2.9.3.1 -pkgrel=1 +pkgver=2.9.6.1 +pkgrel=2 pkgdesc='A lightweight network intrusion detection system.' arch=('i686' 'x86_64') url='http://www.snort.org' license=('GPL') -depends=('libdaq' 'libdnet' 'libpcap' 'pcre' 'zlib') -makedepends=('ca-certificates') -backup=('etc/conf.d/snort' - 'etc/snort/snort.conf' +depends=('libdaq' 'libdnet' 'libpcap' 'openssl' 'pcre' 'zlib') +backup=('etc/snort/snort.conf' 'etc/snort/threshold.conf' - 'etc/snort/confreference.config' + 'etc/snort/reference.config' 'etc/snort/classification.config') options=('!makeflags' '!libtool') install='snort.install' -source=("http://www.snort.org/dl/snort-current/${pkgname}-${pkgver}.tar.gz"{,.sig} - 'snort' - 'snort.conf.d') +source=("http://www.snort.org/dl/snort-current/${pkgname}-${pkgver}.tar.gz" + "http://rules.emergingthreats.net/open/${pkgname}-2.9.0/emerging.rules.tar.gz" + 'snort.service') build() { cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --sysconfdir=/etc/snort --with-libpcap-includes=/usr/include/pcap \ - --without-mysql --without-postgresql --without-oracle --without-odbc --enable-zlib \ - --enable-ipv6 + --with-daq-includes=/usr/include --with-daq-libraries=/usr/lib/ \ + --enable-zlib --disable-static-daq make } @@ -44,8 +41,14 @@ package() { install -d -m755 "${pkgdir}/var/log/snort" install -D -m644 etc/{*.conf*,*.map} "${pkgdir}/etc/snort/" - install -D -m644 "${srcdir}/snort.conf.d" "${pkgdir}/etc/conf.d/snort" - install -D -m755 "${srcdir}/snort" "${pkgdir}/etc/rc.d/snort" + +# init service file + install -D -m644 ../snort.service $pkgdir/usr/lib/systemd/system/snort.service sed -i 's#/usr/local/lib/#/usr/lib/#' "${pkgdir}/etc/snort/snort.conf" + +# emerginthreats rules + echo 'include $RULE_PATH/emerging.conf' >> "${pkgdir}/etc/snort/snort.conf" + cp ${srcdir}/rules/* "${pkgdir}/etc/snort/rules" } + diff --git a/pcr/snort/snort.service b/pcr/snort/snort.service new file mode 100644 index 000000000..d3d0da01f --- /dev/null +++ b/pcr/snort/snort.service @@ -0,0 +1,10 @@ +[Unit] +Description=Snort IDS system listening on '%I' + +[Service] +Type=simple +ExecStartPre=/usr/sbin/ip link set up dev %I +ExecStart=/usr/bin/snort -A fast -b -p -u snort -g snort -c /etc/snort/snort.conf -i %I + +[Install] +Alias=multi-user.target.wants/snort@eth0.service diff --git a/pcr/syncthing/PKGBUILD b/pcr/syncthing/PKGBUILD new file mode 100644 index 000000000..4929f8b6a --- /dev/null +++ b/pcr/syncthing/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer : Martin Wimpress <code@flexion.org> +# Contributor: Sauyon Lee <sauyonl@sauyon.com> +# Contributor: Kevin MacMartin <prurigro@gmail.com> + +pkgname=syncthing +pkgver=0.8.13 +pkgrel=1 +pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" +url="http://syncthing.net/" +license=('MIT') +arch=('i686' 'x86_64') +depends=('glibc') +makedepends=('git' 'go' 'godep' 'inetutils') +source=("${pkgname}::git+https://github.com/calmh/syncthing.git#tag=v${pkgver}" + "syncthing@.service" + "syncthing.1") +sha1sums=('SKIP' + '204cad3823306c793a14a17a23220e26199160d4' + 'cabf3bf78457ce17057ae39fe3b0009a4aa446c4') +install=${pkgname}.install + +prepare() { + cd "${srcdir}" + mkdir -p "src/github.com/calmh" + mv "${pkgname}" "src/github.com/calmh/${pkgname}" +} + +build() { + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/calmh/${pkgname}" + ./build.sh +} + +check() { + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/calmh/${pkgname}" + ./build.sh test +} + +package() { + cd "${srcdir}/src/github.com/calmh/${pkgname}" + install -D -m 755 syncthing "${pkgdir}/usr/bin/syncthing" + install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -D -m 644 "${srcdir}/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" + install -D -m 644 "${srcdir}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" +} diff --git a/pcr/syncthing/syncthing.1 b/pcr/syncthing/syncthing.1 new file mode 100644 index 000000000..9a06ddb7f --- /dev/null +++ b/pcr/syncthing/syncthing.1 @@ -0,0 +1,100 @@ +.\" generated with Ronn/v0.7.3 +.\" http://github.com/rtomayko/ronn/tree/0.7.3 +. +.TH "SYNCTHING" "" "May 2014" "" "syncthing" +. +.SH "Project Goals" +This is the \fBsyncthing\fR project\. The following are the project goals: +. +.IP "1." 4 +Define a protocol for synchronization of a file repository between a number of collaborating nodes\. The protocol should be well defined, unambiguous, easily understood, free to use, efficient, secure and language neutral\. This is the Block Exchange Protocol \fIhttps://github\.com/calmh/syncthing/blob/master/protocol/PROTOCOL\.md\fR\. +. +.IP "2." 4 +Provide the reference implementation to demonstrate the usability of said protocol\. This is the \fBsyncthing\fR utility\. It is the hope that alternative, compatible implementations of the protocol will come to exist\. +. +.IP "" 0 +. +.P +The two are evolving together; the protocol is not to be considered stable until syncthing 1\.0 is released, at which point it is locked down for incompatible changes\. +. +.P +Syncthing does not use the BitTorrent protocol\. The reasons for this are 1) we don\'t know if BitTorrent Sync does either, so there\'s nothing to be compatible with, 2) BitTorrent includes a lot of functionality for making sure large swarms of selfish agents behave and somehow work towards a common goal\. Here we have a much smaller swarm of cooperative agents and a simpler approach will suffice\. +. +.SH "Systemd" +The systemd services for Syncthing and its discovery server can be used to start, stop, restart and enable them to run at boot\. +. +.SS "Syncthing" +Syncthing is the main sync client and can be controlled using systemd using the commands below\. Since Syncthing is run for a particular user, replace \'username\' in the commands below with the name of the user you want it to run it under\. +. +.IP "\(bu" 4 +\fBStart Syncthing\fR: \fBsystemctl start syncthing@username\fR +. +.IP "\(bu" 4 +\fBStop Syncthing\fR: \fBsystemctl stop syncthing@username\fR +. +.IP "\(bu" 4 +\fBRestart Syncthing\fR: \fBsystemctl restart syncthing@username\fR +. +.IP "\(bu" 4 +\fBEnable Syncthing at Boot\fR: \fBsystemctl enable syncthing@username\fR +. +.IP "\(bu" 4 +\fBDisable Syncthing at Boot\fR: \fBsystemctl disable syncthing@username\fR +. +.IP "" 0 +. +.SS "Discovery Server" +The discovery server is an optional service that can be run and connected to by Syncthing in place of the default\. To have clients connect to a custom discovery server, you\'ll want to start the service on your server, then open "\fI~/\.syncthing/config\.xml\fR" and replace "\fIannounce\.syncthing\.net\fR" with your custom discovery server\'s address\. +. +.IP "\(bu" 4 +\fBStart Discovery Server Service\fR: \fBsystemctl start syncthing\-discosrv\fR +. +.IP "\(bu" 4 +\fBStop Discovery Server Service\fR: \fBsystemctl stop syncthing\-discosrv\fR +. +.IP "\(bu" 4 +\fBRestart Discovery Server Service\fR: \fBsystemctl restart syncthing\-discosrv\fR +. +.IP "\(bu" 4 +\fBEnable Discovery Server at Boot\fR: \fBsystemctl enable syncthing\-discosrv\fR +. +.IP "\(bu" 4 +\fBDisable Discovery Server at Boot\fR: \fBsystemctl disable syncthing\-discosrv\fR +. +.IP "" 0 +. +.SH "Configuring" +The config folder is automatically generated when syncthing is run for the first time, and can be found (by default) @ \'~/\.syncthing\'\. +. +.P +The admin GUI starts automatically when the service is running, and remains available (by default) @ \fIhttp://localhost:8080\fR\. +. +.P +On the left is the list of "repositories", or directories to synchronize\. On the right is the list of nodes\. Currently there is only one node, the local node\. The first thing you need to do is tell each node about the other node so they can talk to each other\. Click the "Add Node" button on each node\. You\'ll get the "Add Node" dialog, where you need to input the node ID of the other node and give it a short name\. If you have both nodes GUI available on the same machine (say via remote desktop or a port forward) you can simply cut and paste the node ID from the bottom of one dialog to the other\. Otherwise it is probably easiest to send the ID:s in a mail to yourself or something similar\. +. +.P +The node IDs are quite long and unwieldy, but this is part of the security of the system\. They uniquely identify node\'s key so that each node can be assured of who it\'s talking to\. The node ID is not a password and does not need to be kept secret\. +. +.P +Once you click "Save" the new node will appear on right side of the GUI and a prompt will be shown to indicate the need for a restart\. +. +.P +Syncthing needs to be restarted for configuration changes like new nodes and repositories to take effect\. We shouldn\'t restart just yet though, because we also need to share the repository with the new node\. Click "Edit" on the repository to the left, and check the checkbox for the other node before saving and restarting\. +. +.P +When you click restart syncthing will first restart, then come back up and after a while (up to a minute) connect to the other node\. +. +.P +At this point the two nodes share an empty directory\. Adding files to the Sync directory on either node will synchronize those files to the other side\. Each node scans for changes every sixty seconds, so changes can take a bit over a minute to propagate to the other side\. +. +.P +An up to date version of this documentation that includes images can be found @ \fIhttp://discourse\.syncthing\.net/t/getting\-started/46\fR\. +. +.SH "Online Documentation" +Additional documentation can be found online @ discourse site \fIhttp://discourse\.syncthing\.net/category/documentation\fR\. +. +.SH "License" +All documentation and protocol specifications are licensed under the Creative Commons Attribution 4\.0 International License \fIhttp://creativecommons\.org/licenses/by/4\.0/\fR\. +. +.P +All code is licensed under the MIT License \fIhttps://github\.com/calmh/syncthing/blob/master/LICENSE\fR\. diff --git a/pcr/syncthing/syncthing.install b/pcr/syncthing/syncthing.install new file mode 100644 index 000000000..e400b9ba7 --- /dev/null +++ b/pcr/syncthing/syncthing.install @@ -0,0 +1,28 @@ +post_install() { +cat << EOF + WebGUI can be accessed at http://localhost:8080 + + Execute + + systemctl daemon-reload + + to reload systemd modules. + + To start syncthing, execute: + + systemctl start syncthing@user + + where 'user' is your username. + + To autostart syncthing on system start, execute + + systemctl enable syncthing@user + + where 'user' is your username. + +EOF +} + +post_upgrade() { + post_install +} diff --git a/pcr/syncthing/syncthing@.service b/pcr/syncthing/syncthing@.service new file mode 100644 index 000000000..93ed40e14 --- /dev/null +++ b/pcr/syncthing/syncthing@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Syncthing service for %i +After=network.target + +[Service] +User=%i +Environment=STNORESTART=yes +ExecStart=/usr/bin/syncthing +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/pcr/zeroinstall-injector/PKGBUILD b/pcr/zeroinstall-injector/PKGBUILD index 6be6bc71e..ce9e072ee 100644 --- a/pcr/zeroinstall-injector/PKGBUILD +++ b/pcr/zeroinstall-injector/PKGBUILD @@ -1,36 +1,34 @@ -# Contributor (Arch): SpepS <dreamspepser at yahoo dot it> -# Contributor (Arch): Anton Bazhenov <anton.bazhenov at gmail> -# Contributor (Arch): Lone_Wolf <lonewolf@xs4all.nl> -# Maintainer : Parabola GNU / Linux-libre <aurelien@cwb.io> +# Maintainer: Ben Darwin <bcdarwin at gmail> +# Contributor: speps <speps at aur dot archlinux dot org> +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Contributor: Lone_Wolf <lonewolf@xs4all.nl> pkgname=zeroinstall-injector -pkgver=1.8 +_pkgname=0install +pkgver=2.6.1 pkgrel=1 -pkgdesc="A decentralised loosly-coupled secure installation system" -arch=('any') -url="http://zero-install.sourceforge.net/" +pkgdesc="A decentralised loosely-coupled secure installation system" +arch=('i686' 'x86_64') +url="http://0install.net" license=('GPL2' 'LGPL') -depends=('pygtk' 'dbus-python' 'gnupg' 'hicolor-icon-theme' 'desktop-file-utils') -optdepends=('xdg-utils: desktop integration' +depends=('ocaml-curl' 'ocaml-extlib' 'ocaml-lwt' + 'ocaml-ounit' 'ocaml-xmlm' 'ocaml-yojson') +optdepends=('ocaml-lablgtk: provides GUI features' + 'ocaml-obus: for DBUS, packagekit, and NetworkManager integration' + 'xdg-utils: desktop integration' 'packagekit: packagekit integration') install="$pkgname.install" -source=("http://downloads.sourceforge.net/zero-install/$pkgname-$pkgver.tar.bz2") -md5sums=('00b3e8b3cbfbe8ed55f81842a4d2c386') +source=("http://downloads.sourceforge.net/zero-install/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.bz2" + "http://downloads.sourceforge.net/zero-install/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.bz2.sig") +sha256sums=('7f691924616c1f7154ac53f4904b63e9a801f4ee3e470f9d641d39fc94e274a2' + 'SKIP') build() { - cd "$srcdir/$pkgname-$pkgver" - - # man path fix - sed -i "s|man/|share/&|" setup.py - - python2 setup.py build + cd $_pkgname-$pkgver + make || return 1 } package() { - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --prefix=/usr --root="$pkgdir/" - - # python2 fix - sed -i "s/env python/&2/" `grep -rl "env python" "$pkgdir"` + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir/" install_system } -md5sums=('00b3e8b3cbfbe8ed55f81842a4d2c386') diff --git a/pcr/zeroinstall-injector/PKGBUILD1 b/pcr/zeroinstall-injector/PKGBUILD1 new file mode 100644 index 000000000..564c9219f --- /dev/null +++ b/pcr/zeroinstall-injector/PKGBUILD1 @@ -0,0 +1,33 @@ +# Contributor (Arch) : Ben Darwin <bcdarwin at gmail> +# Contributor (Arch) : speps <speps at aur dot archlinux dot org> +# Contributor (Arch) : Anton Bazhenov <anton.bazhenov at gmail> +# Contributor (Arch) : Lone_Wolf <lonewolf@xs4all.nl> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=zeroinstall-injector +_pkgname=0install +pkgver=2.7 +pkgrel=0 +pkgdesc="A decentralised loosely-coupled secure installation system" +arch=('i686' 'x86_64') +url="http://0install.net" +license=('GPL2' 'LGPL') +depends=('gringo' 'clasp' 'opam' 'aspcud' 'ocaml' 'ocaml-curl' 'ocaml-extlib' 'ocaml-lwt' 'ocaml-biniou' + 'ocaml-ounit' 'ocaml-xmlm' 'ocaml-yojson' 'ocaml-findlib') +optdepends=('ocaml-lablgtk: provides GUI features' + 'ocaml-obus: for DBUS, packagekit, and NetworkManager integration' + 'xdg-utils: desktop integration' + 'packagekit: packagekit integration') +install="$pkgname.install" +source=("http://kent.dl.sourceforge.net/project/zero-install/$_pkgname/2.7/$_pkgname-2.7.tar.bz2" + "http://kent.dl.sourceforge.net/project/zero-install/$_pkgname/2.7/$_pkgname-2.7.tar.bz2.sig") + +build() { + cd $_pkgname-$pkgver + make || return 1 +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir/" install_home +} |