summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rwxr-xr-xPKGBUILD22
-rw-r--r--filebin.install6
3 files changed, 16 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ce322722e3fd..8551f76c1df5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = filebin
pkgdesc = A pastebin service written in PHP
pkgver = 3.4.4
- pkgrel = 1
+ pkgrel = 2
url = https://wiki.server-speed.net/projects/filebin
install = filebin.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 3c90622bab67..17a89990dace 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Simon Hanna<simon DOT Hanna AT serve-me DOT info>
pkgname=filebin
pkgver=3.4.4
-pkgrel=1
+pkgrel=2
pkgdesc="A pastebin service written in PHP"
arch=('any')
url="https://wiki.server-speed.net/projects/filebin"
@@ -38,26 +38,28 @@ sha256sums=('SKIP'
'd73e4b984ab95954bd18e08237c6aa8bec32ccc5699531727362e2c75ba9c25e')
prepare() {
- cd ${srcdir}/filebin
- git checkout ${pkgver}
+ cd "${srcdir}/${pkgname}"
+ git checkout "${pkgver}"
git submodule update --init --recursive
}
build () {
- bash "${srcdir}/filebin/scripts/optimize_js.sh"
+ bash "${srcdir}/${pkgname}/scripts/optimize_js.sh"
}
package() {
+ install -Dm644 "${srcdir}/${pkgname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
install -D -d -m755 "${pkgdir}/usr/lib/systemd/system"
install -D -d -m755 -g 33 "${pkgdir}/usr/share/webapps/filebin" "${pkgdir}/etc/webapps/filebin"
install -D -d -m755 -o 33 -g 33 "${pkgdir}/usr/share/webapps/filebin/data/uploads"
- install -m640 -g 33 "${srcdir}/filebin/data/local/examples/contact-info.php" "${pkgdir}/etc/webapps/filebin"
- install -m640 -g 33 "${srcdir}/filebin/application/config/example/config-local.php" "${pkgdir}/etc/webapps/filebin"
- install -m640 -g 33 "${srcdir}/filebin/application/config/example/database.php" "${pkgdir}/etc/webapps/filebin"
- install -m640 -g 33 "${srcdir}/filebin/application/config/example/memcached.php" "${pkgdir}/etc/webapps/filebin"
+ install -m640 -g 33 "${srcdir}/${pkgname}/data/local/examples/contact-info.php" "${pkgdir}/etc/webapps/filebin"
+ install -m640 -g 33 "${srcdir}/${pkgname}/application/config/example/config-local.php" "${pkgdir}/etc/webapps/filebin"
+ install -m640 -g 33 "${srcdir}/${pkgname}/application/config/example/database.php" "${pkgdir}/etc/webapps/filebin"
+ install -m640 -g 33 "${srcdir}/${pkgname}/application/config/example/memcached.php" "${pkgdir}/etc/webapps/filebin"
install -m644 filebin-file-cron.service filebin-file-cron.timer filebin-user-cron.service filebin-user-cron.timer "${pkgdir}/usr/lib/systemd/system"
- install -m644 filebin-nginx.conf filebin-php-fpm.conf ${pkgdir}/usr/share/webapps/filebin
- cp -r "${srcdir}/filebin/"* "${pkgdir}/usr/share/webapps/filebin/"
+ install -m644 filebin-nginx.conf filebin-php-fpm.conf "${pkgdir}/usr/share/webapps/filebin"
+ cp -r "${srcdir}/${pkgname}"/* "${pkgdir}/usr/share/webapps/filebin/"
rm "${pkgdir}/usr/share/webapps/filebin/application/config/memcached.php"
ln -s /etc/webapps/filebin/{config-local,database,memcached}.php "${pkgdir}/usr/share/webapps/filebin/application/config"
ln -s /etc/webapps/filebin/contact-info.php "${pkgdir}/usr/share/webapps/filebin/data/local"
diff --git a/filebin.install b/filebin.install
index f16d2ea35b47..fd6569dca78d 100644
--- a/filebin.install
+++ b/filebin.install
@@ -1,12 +1,12 @@
post_install() {
echo "-------------------------------------------------------------------------------"
- echo "Run check_deps.php to make sure all dependecies are installed."
+ echo "Run `php /usr/share/webapps/filebin/check_deps.php` to make sure all dependecies are installed."
echo ""
echo "Update 'open_basedir' in php's config to include '/tmp', '/usr/share/webapps/filebin' and '/etc/webapps/filebin' (sample php-fpm config includes that)."
echo "Enable exif, phar and any of mysql, mysqli, pgsql, pdo_mysql or pdo_pgsql for database access."
echo "Edit the files in '/etc/webapps/filebin'."
- echo "Run 'php index.php tools update_database' to initialize your database."
- echo "Run 'php index.php user add_user' to add your first user."
+ echo "Run 'php /usr/share/webapps/filebin/index.php tools update_database' to initialize your database."
+ echo "Run 'php /usr/share/webapps/filebin/index.php user add_user' to add your first user."
echo "Additional information can be found in '/usr/share/webapps/filebin/INSTALL'."
echo ""