X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=utils%2Fpciutils%2FMakefile;h=7b47f126efa54c427fbe63715204a44cd2b44a1f;hb=5551e45afd9fb810192e4f3f5799c0c986038b27;hp=cac5fb6d524f3228b3c218e1c5b65a61a7256722;hpb=2b0084787681422387f1d4fcf3f2729052572a00;p=packages.git diff --git a/utils/pciutils/Makefile b/utils/pciutils/Makefile index cac5fb6d5..7b47f126e 100644 --- a/utils/pciutils/Makefile +++ b/utils/pciutils/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2010 OpenWrt.org +# Copyright (C) 2007-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pciutils PKG_VERSION:=3.1.7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils @@ -34,7 +34,8 @@ endef define Package/pciutils/postinst #!/bin/sh -(cd $${PKG_ROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-pciids) +[ -z "$${IPKG_INSTROOT}" ] || \ +(cd $${PKG_ROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-pciids; rm pci.ids.gz.old) exit 0 endef