ifenslave: split build stuff into do_build().

--HG--
extra : convert_revision : e86d33b783c57b9866479568be9bcc59ddf7207f
This commit is contained in:
Juan RP 2010-01-16 03:13:07 +01:00
parent cee86eb88b
commit 76e97f745d

View file

@ -20,12 +20,16 @@ noextract=yes
Add_dependency run glibc Add_dependency run glibc
do_install() do_build()
{ {
cd ${wrksrc} || return 1 cd ${wrksrc} || return 1
gcc -Wall -Wstrict-prototypes ${FILESDIR}/ifenslave.c \ gcc -Wall -Wstrict-prototypes ${FILESDIR}/ifenslave.c \
-o ifenslave || return 1 -o ifenslave || return 1
install -D -m755 ifenslave ${DESTDIR}/sbin/ifenslave }
do_install()
{
install -D -m755 ${wrksrc}/ifenslave ${DESTDIR}/sbin/ifenslave
install -D -m644 ${FILESDIR}/ifenslave.8 \ install -D -m644 ${FILESDIR}/ifenslave.8 \
${DESTDIR}/usr/share/man/man8/ifenslave.8 || return 1 ${DESTDIR}/usr/share/man/man8/ifenslave.8 || return 1
} }