restund: remove postinst script 576/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 4 Oct 2020 13:44:43 +0000 (15:44 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 4 Oct 2020 13:44:44 +0000 (15:44 +0200)
There are no secrets in /etc/restund.conf. Remove the postinstall script
and install the file with regular permissions.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/restund/Makefile

index 7a0ab63b2444f8c0c4f67b6b91f97b413b789fc1..fb30da6dafc742591f697d07cd3064992d393592 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=restund
 PKG_VERSION:=0.4.12
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.creytiv.com/pub
@@ -76,7 +76,7 @@ define Package/restund/install
                $(PKG_INSTALL_DIR)/usr/lib/restund/modules/turn.so \
                $(1)/usr/lib/restund/modules
        $(INSTALL_DIR) $(1)/etc
-       $(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/restund.conf $(1)/etc
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/restund.conf $(1)/etc
        $(SED) \
                's|^\(module_path\)\([ \t]\+\).*$$$$|\1\2/usr/lib/restund/modules|g' \
                $(1)/etc/restund.conf
@@ -92,14 +92,6 @@ define Package/restund/conffiles
 /etc/restund.conf
 endef
 
-define Package/restund/postinst
-#!/bin/sh
-if [ -z "$${IPKG_INSTROOT}" ]; then
-  chown $(PKG_NAME):$(PKG_NAME) /etc/restund.conf
-fi
-exit 0
-endef
-
 #
 # 1. Name
 # 2. Title