From 0b354a26904ad89ba051a142f4d698cc9f8f7444 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Sun, 16 Sep 2018 23:22:36 +0200 Subject: [PATCH] Fix: Bump version to 4.1.2 Fix: Archlinux PKGBUILD checksums and install script #45 Fix: Debian packaging #54 --- CMakeLists.txt | 4 ++-- PKGBUILD | 9 ++++----- contrib/myMPD.spec | 4 ++-- contrib/uninstall.sh | 8 ++++++++ debian/changelog | 2 +- debian/postinst | 4 ++-- dist/htdocs/sw.min.js | 2 +- htdocs/sw.js | 2 +- mkdebian.sh | 2 +- mkrelease.sh | 2 +- src/mympd.c | 2 ++ 11 files changed, 25 insertions(+), 16 deletions(-) create mode 100755 contrib/uninstall.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e528e4..4f5e127 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,10 +4,10 @@ project (mympd C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/") set(CPACK_PACKAGE_VERSION_MAJOR "4") set(CPACK_PACKAGE_VERSION_MINOR "1") -set(CPACK_PACKAGE_VERSION_PATCH "1") +set(CPACK_PACKAGE_VERSION_PATCH "2") if(CMAKE_BUILD_TYPE MATCHES RELEASE) - set(ASSETS_PATH "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/htdocs") + set(ASSETS_PATH "/usr/share/${PROJECT_NAME}/htdocs") set(DEBUG "OFF") else() set(ASSETS_PATH "${PROJECT_SOURCE_DIR}/htdocs") diff --git a/PKGBUILD b/PKGBUILD index 22831e3..eab2876 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=mympd _pkgname=myMPD -pkgver=4.1.1 +pkgver=4.1.2 pkgrel=1 pkgdesc="A standalone MPD Web GUI based on YMPD - Default port set to 80" arch=('x86_64' 'armv7h' 'aarch64') @@ -18,10 +18,8 @@ provides=() conflicts=() replaces=() install=contrib/archlinux.install -source=("https://github.com/jcorporation/${_pkgname}/archive/v${pkgver}.tar.gz" - 'mympd.install') -sha256sums=('ec776fa76b2623f27e147abbb0e182d54fb8b80917a35533e58d95ca9f0571d1' - 'b01671a1153764d96655069f0a9ddf8ab2f7370f60a3789f6f1b4f370474df67') +source=("https://github.com/jcorporation/${_pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('SKIP') prepare() { export java=$(which java 2> /dev/null) @@ -83,5 +81,6 @@ package() { mv "${pkgdir}/etc/mympd/mympd.conf" "${pkgdir}/etc/mympd/mympd.conf.dist" install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/contrib/mympd.service" "$pkgdir/usr/lib/systemd/system/mympd.service" + /usr/share/mympd/crcert.sh } diff --git a/contrib/myMPD.spec b/contrib/myMPD.spec index 95352e3..c6d2306 100644 --- a/contrib/myMPD.spec +++ b/contrib/myMPD.spec @@ -4,13 +4,13 @@ # (c) 2018 Juergen Mang /dev/null [ "$?" = "2" ] && groupadd -r mympd getent passwd mympd > /dev/null -[ "$?" = "2" ] && useradd -r mympd -g mympd-d /var/lib/mympd -s /usr/sbin/nologin +[ "$?" = "2" ] && useradd -r mympd -g mympd -d /var/lib/mympd -s /usr/sbin/nologin chown -R mympd.mympd /var/lib/mympd @@ -32,7 +32,7 @@ then echo "Certificates already created" else echo "Creating certificates" - sudo contrib/crcert.sh + sudo /usr/share/mympd/crcert.sh fi echo "myMPD installed" diff --git a/dist/htdocs/sw.min.js b/dist/htdocs/sw.min.js index 10d8e65..45c2403 100644 --- a/dist/htdocs/sw.min.js +++ b/dist/htdocs/sw.min.js @@ -10,5 +10,5 @@ function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c= void 0;try{d=a.then}catch(h){this.reject_(h);return}"function"==typeof d?this.settleSameAsThenable_(d,a):this.fulfill_(a)};c.prototype.reject_=function(a){this.settle_(2,a)};c.prototype.fulfill_=function(a){this.settle_(1,a)};c.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};c.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a= 0;a