diff --git a/ressources/tt-rss-plugin-wallabag/debmaker b/ressources/tt-rss-plugin-wallabag/debmaker new file mode 100755 index 0000000..b86d610 --- /dev/null +++ b/ressources/tt-rss-plugin-wallabag/debmaker @@ -0,0 +1,20 @@ +#!/bin/bash + +APP=tt-rss-plugin-wallabag +VERSION=$(date +%Y%m.%d.%H%M) +GIT_VERSION=2.0.0 +DEB_VERSION=$VERSION +DEBIAN_VERSION_CODENAME=bullseye +IMAGE_SIZE=1 +DEPOT=https://github.com/joshp23/ttrss-to-wallabag-v2.git + +STEP="base_package_upgrade get_git_source makedeb" + +makedeb(){ + PATH_DEB=/tmp/src/rootfs + mkdir -p ${PATH_DEB}/usr/share/tt-rss/plugins.local/ + cp -fr /tmp/${APP}/wallabag_v2 ${PATH_DEB}/usr/share/tt-rss/plugins.local/wallabag_v2 + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist +} diff --git a/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/changelog b/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/control b/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/control new file mode 100644 index 0000000..4a6b087 --- /dev/null +++ b/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: tt-rss-plugin-wallabag +Version: %VERSION% +Section: base +Priority: optional +Architecture: all +Depends: tt-rss, php-curl +Maintainer: Thomas Legay +Description: tt-rss-plugin-wallabag diff --git a/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/postinst b/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/postinst new file mode 100755 index 0000000..3e20645 --- /dev/null +++ b/ressources/tt-rss-plugin-wallabag/rootfs/DEBIAN/postinst @@ -0,0 +1,2 @@ +#!/bin/bash +chown -R www-data:www-data /var/lib/tt-rss/