From aae9f6f52a50fc9a6dd3d05f8bac3eff20aa1eaf Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Wed, 2 Jul 2014 13:34:33 +0200 Subject: [PATCH] sabnzbd: do not use symlink to SABnzbd.py SABnzbd has location-dependent code. A simple symlink in /usr/bin will cause it to look for its templates in /usr/bin, too. --- srcpkgs/sabnzbd/files/sabnzbd | 3 +++ srcpkgs/sabnzbd/template | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/sabnzbd/files/sabnzbd diff --git a/srcpkgs/sabnzbd/files/sabnzbd b/srcpkgs/sabnzbd/files/sabnzbd new file mode 100644 index 00000000000..1679bc570bc --- /dev/null +++ b/srcpkgs/sabnzbd/files/sabnzbd @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/share/sabnzbd/ +./SABnzbd.py $* diff --git a/srcpkgs/sabnzbd/template b/srcpkgs/sabnzbd/template index d7d46c2724d..3f232c47456 100644 --- a/srcpkgs/sabnzbd/template +++ b/srcpkgs/sabnzbd/template @@ -40,6 +40,5 @@ do_install() { vmkdir usr/share/sabnzbd mv * ${DESTDIR}/usr/share/sabnzbd/ - mkdir -p ${DESTDIR}/usr/bin/ - ln -fs /usr/share/sabnzbd/SABnzbd.py ${DESTDIR}/usr/bin/sabnzbd + vinstall ${FILESDIR}/sabnzbd 0755 usr/bin/ }