mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
A hack job that gives a usable 'cvsup' on AMD64.
(this uses a static i386 binary w/@M3nogc)
This commit is contained in:
parent
fb9cbe8b01
commit
6a4c68b950
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108426
@ -16,41 +16,58 @@ DISTNAME= cvsup-snap-${PORTVERSION}
|
||||
MAINTAINER= jdp@FreeBSD.org
|
||||
COMMENT?= General network file distribution system optimized for CVS (GUI version)
|
||||
|
||||
.ifdef WITHOUT_X11
|
||||
M3FLAGS+= -DNOGUI
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/m3/pkg/tcp/${TARGET}/libm3tcp.a:${PORTSDIR}/lang/ezm3
|
||||
PKGNAMESUFFIX= -without-gui
|
||||
COMMENT= General network file distribution system optimized for CVS (non-GUI version)
|
||||
DESCR= ${PKGDIR}/pkg-descr.nogui
|
||||
.else
|
||||
USE_XLIB= yes
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/m3/pkg/formsvbt/${TARGET}/libm3formsvbt.a:${PORTSDIR}/lang/ezm3
|
||||
PROCESSOR!= /usr/bin/uname -p
|
||||
.if ${PROCESSOR} == "amd64"
|
||||
USE_BZIP2= yes
|
||||
.endif
|
||||
|
||||
MAKE_ARGS+= PREFIX=${PREFIX} M3FLAGS="${M3FLAGS}"
|
||||
MAN1= cvpasswd.1 cvsup.1
|
||||
MAN8= cvsupd.8
|
||||
|
||||
.ifdef STATIC
|
||||
M3FLAGS+= -DSTATIC
|
||||
.endif
|
||||
ONLY_FOR_ARCHS= alpha amd64 i386 sparc64
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
ONLY_FOR_ARCHS= alpha i386 sparc64
|
||||
|
||||
.if ${OSVERSION} < 410000
|
||||
BROKEN= Not supported on versions earlier than 4.1-RELEASE
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "alpha"
|
||||
TARGET= FBSD_ALPHA
|
||||
.elif ${ARCH} == "amd64"
|
||||
DISTNAME= cvsup-static.i386
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_REINPLACE= yes
|
||||
NO_BUILD= binary-only
|
||||
PLIST_FILES= libexec/cvsup-static.i386.bin
|
||||
.elif ${ARCH} == "i386"
|
||||
TARGET= FreeBSD4
|
||||
.elif ${ARCH} == "sparc64"
|
||||
TARGET= FBSD_SPARC64
|
||||
.endif
|
||||
|
||||
.ifdef WITHOUT_X11
|
||||
M3FLAGS+= -DNOGUI
|
||||
.if ${ARCH} != "amd64"
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/m3/pkg/tcp/${TARGET}/libm3tcp.a:${PORTSDIR}/lang/ezm3
|
||||
.endif # != amd64
|
||||
PKGNAMESUFFIX= -without-gui
|
||||
COMMENT= General network file distribution system optimized for CVS (non-GUI version)
|
||||
DESCR= ${PKGDIR}/pkg-descr.nogui
|
||||
.else
|
||||
.if ${ARCH} != "amd64"
|
||||
USE_XLIB= yes
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/m3/pkg/formsvbt/${TARGET}/libm3formsvbt.a:${PORTSDIR}/lang/ezm3
|
||||
.endif # != amd64
|
||||
.endif
|
||||
|
||||
.if ${ARCH} != "amd64"
|
||||
MAKE_ARGS+= PREFIX=${PREFIX} M3FLAGS="${M3FLAGS}"
|
||||
MAN1= cvpasswd.1 cvsup.1
|
||||
MAN8= cvsupd.8
|
||||
.endif # != amd64
|
||||
|
||||
.ifdef STATIC
|
||||
M3FLAGS+= -DSTATIC
|
||||
.endif
|
||||
|
||||
pre-fetch:
|
||||
.ifndef WITHOUT_X11
|
||||
@${ECHO_MSG} "*****************************************************"
|
||||
@ -64,4 +81,26 @@ post-install:
|
||||
@${MKDIR} ${PREFIX}/share/cvsup
|
||||
@${INSTALL_DATA} ${WRKSRC}/License ${PREFIX}/share/cvsup/License
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
PROGS= bin/cvsup sbin/cvsupd bin/cvpasswd
|
||||
|
||||
do-configure:
|
||||
@${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/cvsup-static.i386.bin ${PREFIX}/libexec
|
||||
@${ECHO} '#! /bin/sh' > ${PREFIX}/bin/cvsup
|
||||
@${ECHO} '${PREFIX}/libexec/cvsup-static.i386.bin @M3nogc $$*' \
|
||||
>> ${PREFIX}/bin/cvsup
|
||||
@${ECHO} '#! /bin/sh' > ${PREFIX}/sbin/cvsupd
|
||||
@${ECHO} 'echo `basename $$0` not supported on `uname -m`' \
|
||||
>> ${PREFIX}/sbin/cvsupd
|
||||
@${ECHO} '#! /bin/sh' > ${PREFIX}/bin/cvpasswd
|
||||
@${ECHO} 'echo `basename $$0` not supported on `uname -m`' \
|
||||
>> ${PREFIX}/sbin/cvpasswd
|
||||
cd ${PREFIX} ; \
|
||||
${CHOWN} ${BINOWN}:${BINGRP} ${PROGS} ; \
|
||||
${CHMOD} ${BINMODE} ${PROGS}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,4 @@
|
||||
MD5 (cvsup-snap-16.1h.tar.gz) = b100ace98a41aa9f3d3e75b0d3c245b0
|
||||
SIZE (cvsup-snap-16.1h.tar.gz) = 430951
|
||||
MD5 (cvsup-static.i386.tar.bz2) = 3be28213628e424e565d370305e30ca0
|
||||
SIZE (cvsup-static.i386.tar.bz2) = 754573
|
||||
|
Loading…
Reference in New Issue
Block a user