wok-next view netselect/stuff/patches/netselect-0.4.patch @ rev 20486

outguess: fix install path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 10:46:52 2018 +0100 (2018-03-12)
parents
children
line source
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -1,6 +1,6 @@
4 -PREFIX = /usr/local
5 +PREFIX = /usr
6 BINDEST = ${PREFIX}/bin
7 -MANDEST = ${PREFIX}/man/man1
8 +MANDEST = ${PREFIX}/share/man/man1
10 CC = gcc
11 CFLAGS = -O2 -Wall -I. -g
12 @@ -29,13 +29,13 @@
13 chown root netselect && chmod u+s netselect
14 endif
16 - -install -d ${BINDEST}
17 - -install -d ${MANDEST}
18 + -install -d ${DESTDIR}${BINDEST}
19 + -install -d ${DESTDIR}${MANDEST}
20 install -o root -g root -m 4755 \
21 - netselect${BINSUFFIX} ${BINDEST}
22 - install -o root -g root -m 0755 netselect-apt ${BINDEST}
23 - install -o root -g root -m 0644 netselect.1 ${MANDEST}
24 - install -o root -g root -m 0644 netselect-apt.1 ${MANDEST}
25 + netselect${BINSUFFIX} ${DESTDIR}${BINDEST}
26 + install -o root -g root -m 0755 netselect-apt ${DESTDIR}${BINDEST}
27 + install -o root -g root -m 0644 netselect.1 ${DESTDIR}${MANDEST}
28 + install -o root -g root -m 0644 netselect-apt.1 ${DESTDIR}${MANDEST}
31 uninstall: