From 734b0d76e5b97477b05438c7c19a7b666bf25492 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 4 Oct 2020 15:44:43 +0200 Subject: [PATCH] restund: remove postinst script There are no secrets in /etc/restund.conf. Remove the postinstall script and install the file with regular permissions. Signed-off-by: Sebastian Kemper --- net/restund/Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/net/restund/Makefile b/net/restund/Makefile index 7a0ab63..fb30da6 100644 --- a/net/restund/Makefile +++ b/net/restund/Makefile @@ -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 -- 2.30.2