mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 09:56:47 +04:00
arp-scan: fix maintainer script interpreters
Add missing shell interpreter lines to the arp-scan maintainer scripts. This lets apk execute the generated install and removal hooks directly. Use IPKG_INSTROOT in the database postrm cleanup and bump PKG_RELEASE. Signed-off-by: Dharmik Parmar <dharmikparmar2004@yahoo.com>
This commit is contained in:
1 parent
48e49aca11
commit
a01cb8a3f9
1 file changed
+5
-3
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=arp-scan
|
||||
PKG_VERSION:=1.10.0
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/royhills/arp-scan/tar.gz/$(PKG_VERSION)?
|
||||
@@ -52,6 +52,7 @@ define Package/arp-scan/install
|
||||
endef
|
||||
|
||||
define Package/arp-scan/postinst
|
||||
#!/bin/sh
|
||||
cat <<EOF
|
||||
|
||||
Please install the arp-scan-database package in order to let arp-scan
|
||||
@@ -80,8 +81,9 @@ define Package/arp-scan-database/install
|
||||
endef
|
||||
|
||||
define Package/arp-scan-database/postrm
|
||||
$(RM) -rf $(1)/usr/share/arp-scan
|
||||
$(RM) -rf $(1)/etc/arp-scan
|
||||
#!/bin/sh
|
||||
rm -rf "$${IPKG_INSTROOT}/usr/share/arp-scan" \
|
||||
"$${IPKG_INSTROOT}/etc/arp-scan"
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,arp-scan-database))
|
||||
Reference in new issue
Block a user