add lsof in main and fix build plasma-nm

This commit is contained in:
Ertuğrul Erata
2015-08-15 01:19:05 +03:00
parent f8979af81e
commit c031ad7012
5 changed files with 141 additions and 56 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir = "lsof_%s_src" % get.srcVERSION()
def setup():
shelltools.export("LINUX_BASE", "/proc")
shelltools.export("LSOF_LDFLAGS", get.LDFLAGS())
shelltools.touch(".neverInv")
shelltools.system("./Configure -n linux")
def build():
autotools.make('CC="%s" DEBUG="%s" all' % (get.CC(), get.CFLAGS()))
def install():
pisitools.dosbin("lsof")
pisitools.insinto("/usr/share/lsof/scripts", "scripts/*")
pisitools.doman("lsof.8")
pisitools.dodoc("00*")