diff options
author | ru <ru@FreeBSD.org> | 2005-02-28 14:16:53 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-28 14:16:53 +0000 |
commit | 43bead57c49b90533d72791cdb692a1b18af6387 (patch) | |
tree | 54e2e64484f02e166fa97131def3724e442f99d8 /etc/Makefile | |
parent | 6ae9352b09bd5c0af855e71bbd9a6838d2950e02 (diff) | |
download | FreeBSD-src-43bead57c49b90533d72791cdb692a1b18af6387.zip FreeBSD-src-43bead57c49b90533d72791cdb692a1b18af6387.tar.gz |
Step 1/2 of making "make distribute" work for cross-builds.
Diffstat (limited to 'etc/Makefile')
-rw-r--r-- | etc/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile index ee5bfaa..b960424 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -73,11 +73,20 @@ distribute: cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} +.include <bsd.endian.mk> +.if ${TARGET_ENDIANNESS} == "1234" +CAP_MKDB_ENDIAN= -l +.elif ${TARGET_ENDIANNESS} == "4321" +CAP_MKDB_ENDIAN= -b +.else +CAP_MKDB_ENDIAN= +.endif + distribution: cd ${.CURDIR}; \ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ ${BIN1} ${DESTDIR}/etc; \ - cap_mkdb ${DESTDIR}/etc/login.conf; \ + cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ ${BIN2} ${DESTDIR}/etc; \ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ |