]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
lsof: lsof is for root use only.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2010 21:15:15 +0000 (23:15 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2010 21:15:15 +0000 (23:15 +0200)
pkgs/core/lsof/lsof.nm

index 3c87f89a368ea08f8f0f4b764241ec475f120426..f2a1f14e16c121b7a8103072176d40ca08b99c8a 100644 (file)
@@ -45,12 +45,16 @@ PKG_TARBALL    = $(PKG_NAME)_$(PKG_VER)_src.tar.gz
 DIR_APP = /usr/src/$(PKG_NAME)_$(PKG_VER)_src
 
 define STAGE_BUILD
-       cd $(DIR_APP) && ./Configure linux -n
+       cd $(DIR_APP) && \
+               LINUX_BASE=/proc \
+               LSOF_VSTR="2.6.16" \
+               ./Configure linux -n
        cd $(DIR_APP) && make DEBUG="$(CFLAGS)" $(PARALLELISMFLAGS)
 endef
 
 define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       cd $(DIR_APP) && install -m 4750 -o root -g nobody lsof $(BUILDROOT)/usr/bin
+       -mkdir -pv $(BUILDROOT)/usr/sbin
+       cd $(DIR_APP) && install -m 755 lsof $(BUILDROOT)/usr/sbin
+       -mkdir -pv $(BUILDROOT)/usr/share/man/man8
+       cd $(DIR_APP) && cp -vf lsof.8 $(BUILDROOT)/usr/share/man/man8
 endef
-