123456789101112131415161718192021222324252627282930 |
- NAME=vbootstrap
- VERSION=$(shell awk '/%define version/ { print $$3 }' ${NAME}.spec)
- DEFAULT_VERSION=VineSeed
- DESTDIR=
- all:
- sed -e "s/@@VBOOTSTRAP_VERSION@@/${VERSION}/g" vbootstrap.sh.in > vbootstrap.sh
- sed -e "s/@@DEFAULT_VERSION@@/${DEFAULT_VERSION}/g" vbuilder.sh.in > vbuilder.sh
- install:
- install -d ${DESTDIR}/usr/share/vbootstrap/{scripts,sources.list.d}
- install -d ${DESTDIR}/usr/sbin
- install -m 644 vbootstrap/scripts/* ${DESTDIR}/usr/share/vbootstrap/scripts/
- install -m 644 vbootstrap/sources.list.d/* ${DESTDIR}/usr/share/vbootstrap/sources.list.d
- install -m 755 vbootstrap.sh ${DESTDIR}/usr/sbin/vbootstrap
- install -m 755 vbuilder.sh ${DESTDIR}/usr/sbin/vbuilder
- tarbz2: clean
- cd .. && rm -rf ${NAME}-${VERSION}
- cd .. && cp -arf ${NAME} ${NAME}-${VERSION}
- cd .. && tar --exclude CVS -cf - ${NAME}-${VERSION} | bzip2 -9 > ${NAME}-${VERSION}.tar.bz2
- mv ../${NAME}-${VERSION}.tar.bz2 ~/rpm/SOURCES/
- rm -rf ${NAME}-${VERSION}
- rpm: tarbz2
- rpm -ba ${NAME}.spec
- clean:
- rm -fr *~ .*???~ vbootstrap.sh
|