diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2010-10-16 20:49:23 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2010-10-16 20:49:23 -0300 |
commit | 5422399c4feabb409b146b84f8a7dee12b38b983 (patch) | |
tree | aa71477bf72d97625f8b39cfc4b503035b6dc95b | |
parent | 85f93c3d1343ffefa1164109a87c1eb40a14eb11 (diff) |
Package directory. Here we'll put any PKGBUILD that is not on repos.
-rw-r--r-- | pkgs/simpleid/PKGBUILD | 40 | ||||
-rw-r--r-- | pkgs/simpleid/simpleid.install | 12 | ||||
l--------- | pkgs/simpleid/src/simpleid-0.7.4.tar.gz | 1 | ||||
l--------- | pkgs/simpleid/src/simpleid.install | 1 | ||||
-rw-r--r-- | pkgs/statusnet/PKGBUILD | 47 | ||||
-rw-r--r-- | pkgs/statusnet/statusnet.install | 13 |
6 files changed, 114 insertions, 0 deletions
diff --git a/pkgs/simpleid/PKGBUILD b/pkgs/simpleid/PKGBUILD new file mode 100644 index 0000000..e15c522 --- /dev/null +++ b/pkgs/simpleid/PKGBUILD @@ -0,0 +1,40 @@ +# Contributor: fauno <fauno@kiwwwi.com.ar> +pkgname=simpleid +pkgver=0.7.4 +pkgrel=2 +pkgdesc="SimpleID is a simple, personal OpenID provider written in PHP." +arch=('any') +url="http://simpleid.sourceforge.net" +license=('GPL2') +groups=('autonomous-web') +depends=('php') +backup=(etc/webapps/simpleid/config.inc) +provides=('openid-identity') +options=() +source=("http://ufpr.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz" + simpleid.install) +install=simpleid.install + +build() { + cd "$srcdir/$pkgname" + + etc_dir="${pkgdir}/etc/webapps/${pkgname}" + usr_dir="${pkgdir}/usr/share/webapps/${pkgname}" + + install -d ${usr_dir} + install -d ${etc_dir} + install -d ${pkgdir}/usr/share/licenses/${pkgname} + + install -m644 ./www/config.inc.dist ${etc_dir}/config.inc + install -m644 COPYING* ${pkgdir}/usr/share/licenses/${pkgname}/ + + cp -ra ./{www,extensions,cache,store} ${usr_dir}/ + cp -ra ./identities ${etc_dir}/ + + ln -s /etc/webapps/${pkgname}/config.inc ${usr_dir}/www/ + ln -s /etc/webapps/${pkgname}/identities ${usr_dir}/ + + chmod 777 ${usr_dir}/{cache,store} +} +md5sums=('e75cc586a978a99a6f285289d76e8403' + '90e06bee8d1eacea2ab4f75d6b31a999') diff --git a/pkgs/simpleid/simpleid.install b/pkgs/simpleid/simpleid.install new file mode 100644 index 0000000..3cfeae9 --- /dev/null +++ b/pkgs/simpleid/simpleid.install @@ -0,0 +1,12 @@ +post_install(){ + echo "Generating /openid..." + ln -s /usr/share/webapps/simpleid/www /srv/http/openid + echo "Don't forget to set your hostname in /src/http/openid/config.inc" + echo "Also you must add /etc/webapps and /usr/share/webapps into" + echo "php.ini's open_basedir directive." +} + +post_remove(){ + echo "Removing soft links..." + rm /srv/http/openid +} diff --git a/pkgs/simpleid/src/simpleid-0.7.4.tar.gz b/pkgs/simpleid/src/simpleid-0.7.4.tar.gz new file mode 120000 index 0000000..82b79e2 --- /dev/null +++ b/pkgs/simpleid/src/simpleid-0.7.4.tar.gz @@ -0,0 +1 @@ +/home/fauno/pkg/src/simpleid-0.7.4.tar.gz
\ No newline at end of file diff --git a/pkgs/simpleid/src/simpleid.install b/pkgs/simpleid/src/simpleid.install new file mode 120000 index 0000000..b746651 --- /dev/null +++ b/pkgs/simpleid/src/simpleid.install @@ -0,0 +1 @@ +/home/fauno/pkg/simpleid/simpleid.install
\ No newline at end of file diff --git a/pkgs/statusnet/PKGBUILD b/pkgs/statusnet/PKGBUILD new file mode 100644 index 0000000..fd3f53c --- /dev/null +++ b/pkgs/statusnet/PKGBUILD @@ -0,0 +1,47 @@ +# Contributor: fauno <fauno@kiwwwi.com.ar> +pkgname=statusnet +pkgver=0.9.5 +pkgrel=1 +pkgdesc="StatusNet is a Free and Open Source microblogging platform." +arch=('any') +url="http://status.net" +license=('AGPL') +groups=('social-web') +depends=('php>=5.2.3' 'mysql>=5' 'php-gd' 'php-curl' 'php-gmp') +optdepends=('memcache: for caching database queries' + 'php-xcache: for accelerating PHP code execution') +provides=() +options=() +source=("http://status.net/${pkgname}-${pkgver}.tar.gz" + statusnet.install) +install=statusnet.install + +build() { + cd "$srcdir/$pkgname-${pkgver}" + + etc_dir="${pkgdir}/etc/webapps/${pkgname}" + usr_dir="${pkgdir}/usr/share/webapps/${pkgname}" + + install -d ${usr_dir} + install -d ${etc_dir} + install -d ${pkgdir}/usr/share/doc/${pkgname}/ + install -d ${pkgdir}/usr/share/licenses/${pkgname} + + install -m644 ./{config.php,htaccess}.sample \ + ${pkgdir}/usr/share/doc/${pkgname}/ + + install -m644 ./{README,EVENTS.txt,lighttpd.conf.example} \ + ${pkgdir}/usr/share/doc/${pkgname}/ + + install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ + + rm -f *.sample README COPYING README EVENTS.txt *.example + + cp -ra * ${usr_dir}/ + chmod a+w ${usr_dir}/ + chmod a+w ${usr_dir}/{avatar,background,file} +} +md5sums=('ca4fc694e15c68cf921a9c2578988770' + '6f3de28ccb1385123bdf0eb66a78a875') +md5sums=('ca4fc694e15c68cf921a9c2578988770' + '24991580625ec177c144ed5acdbe6dbc') diff --git a/pkgs/statusnet/statusnet.install b/pkgs/statusnet/statusnet.install new file mode 100644 index 0000000..4269344 --- /dev/null +++ b/pkgs/statusnet/statusnet.install @@ -0,0 +1,13 @@ +post_install(){ + cat <<EOM +StatusNet is now installed on your system. + +You should link /usr/share/webapps/statusnet to /srv/http/ + +Start MySQL and your prefered webserver and visit +http://yoursite.tld/statusnet/install.php + +Write permissions of /usr/share/webapps/statusnet has been granted to ensure the +installation process can write the config file. +EOM +} |