drop chmod

This commit is contained in:
illiliti 2020-08-24 17:09:33 +03:00
parent 601bca3510
commit efbfe09094

View File

@ -1,20 +1,19 @@
.POSIX:
PREFIX = /usr PREFIX = /usr
SYSCONFDIR = /etc SYSCONFDIR = /etc
BINDIR = ${PREFIX}/bin BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share DATADIR = ${PREFIX}/share
install: install:
mkdir -p \ mkdir -p ${DESTDIR}${SYSCONFDIR}/tinyramfs \
${DESTDIR}${DATADIR}/tinyramfs/hooks \ ${DESTDIR}${DATADIR}/tinyramfs \
${DESTDIR}${SYSCONFDIR}/tinyramfs \ ${DESTDIR}${BINDIR}
${DESTDIR}${BINDIR} cp config ${DESTDIR}${SYSCONFDIR}/tinyramfs
cp -R hooks/* ${DESTDIR}${DATADIR}/tinyramfs/hooks/ cp -R hooks ${DESTDIR}${DATADIR}/tinyramfs
cp init device-helper ${DESTDIR}${DATADIR}/tinyramfs cp device-helper ${DESTDIR}${DATADIR}/tinyramfs
chmod -R 755 ${DESTDIR}${DATADIR}/tinyramfs cp init ${DESTDIR}${DATADIR}/tinyramfs
cp config ${DESTDIR}${SYSCONFDIR}/tinyramfs cp tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
chmod 600 ${DESTDIR}${SYSCONFDIR}/tinyramfs/config
cp tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
chmod 755 ${DESTDIR}${BINDIR}/tinyramfs
uninstall: uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs rm -f ${DESTDIR}${BINDIR}/tinyramfs