Ticket #5042: patch-prefix.diff
File patch-prefix.diff, 1.2 KB (added by n3npq@…, 19 years ago) |
---|
-
./Makefile
old new 5 5 DESTDIR=/ 6 6 PYTHON=python 7 7 8 prefix= /usr8 prefix=@@PREFIX@@ 9 9 bindir=$(prefix)/bin 10 10 11 11 all: -
./smart/const.py
old new 64 64 65 65 BLOCKSIZE = 16384 66 66 67 DISTROFILE = " /usr/lib/smart/distro.py"68 PLUGINSDIR = " /usr/lib/smart/plugins/"69 DATADIR = " /var/lib/smart/"67 DISTROFILE = "@@PREFIX@@/lib/smart/distro.py" 68 PLUGINSDIR = "@@PREFIX@@/lib/smart/plugins/" 69 DATADIR = "@@PREFIX@@/var/lib/smart/" 70 70 USERDATADIR = "~/.smart/" 71 71 CONFFILE = "config" 72 72 -
./smart/util/filetools.py
old new 65 65 pass 66 66 67 67 def setCloseOnExecAll(): 68 for fd in range(3,resource.getrlimit(resource.RLIMIT_NOFILE)[1]): 68 nfmax = resource.getrlimit(resource.RLIMIT_NOFILE)[1] 69 if nfmax > 4096: 70 nfmax = 4096 71 for fd in range(3,nfmax): 69 72 try: 70 73 flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0) 71 74 flags |= fcntl.FD_CLOEXEC