archlinux: ensure /usr/sbin is not use to follow archlinux packaging guidelines
This commit is contained in:
parent
80b4c2ecd5
commit
9ee8281ab7
@ -43,7 +43,7 @@ make all
|
||||
|
||||
package() {
|
||||
|
||||
make install DESTDIR=$pkgdir LIBDIR=/usr/lib
|
||||
make install DESTDIR=$pkgdir LIBDIR=/usr/lib SBINDIR=/usr/bin
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
CC=gcc
|
||||
CFLAGS=-Wall -Wextra -Werror -g -O3
|
||||
all: meminfo-writer
|
||||
SBINDIR?=/usr/sbin
|
||||
|
||||
_XENSTORE_H=$(shell ls /usr/include/xenstore.h)
|
||||
ifneq "$(_XENSTORE_H)" ""
|
||||
@ -10,7 +11,7 @@ endif
|
||||
meminfo-writer: meminfo-writer.o
|
||||
$(CC) -g -o meminfo-writer meminfo-writer.o -lxenstore
|
||||
install:
|
||||
install -D meminfo-writer $(DESTDIR)/usr/sbin/meminfo-writer
|
||||
install -D meminfo-writer $(DESTDIR)/$(SBINDIR)/meminfo-writer
|
||||
ifeq (1,${DEBIANBUILD})
|
||||
install -d $(DESTDIR)/lib/systemd/system/
|
||||
install -m 0644 qubes-meminfo-writer.service $(DESTDIR)/lib/systemd/system/
|
||||
|
Loading…
Reference in New Issue
Block a user