diff options
Diffstat (limited to 'cad/astk-serveur')
-rw-r--r-- | cad/astk-serveur/Makefile | 14 | ||||
-rw-r--r-- | cad/astk-serveur/files/patch-lib__as_system.py | 16 |
2 files changed, 21 insertions, 9 deletions
diff --git a/cad/astk-serveur/Makefile b/cad/astk-serveur/Makefile index 7673e4bbed25..e225a53c75e5 100644 --- a/cad/astk-serveur/Makefile +++ b/cad/astk-serveur/Makefile @@ -58,6 +58,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_SERV PATCHDIR= ${MASTERDIR}/files PLIST_SUB= ASTKDIR=${LINSTDIR}/ASTK_SERV SERV="" CLIENT="@comment " \ vaster=${vaster} +PATCH2RM= conf/config bin/as_exec bin/as_serv lib/as_config.py \ + lib/as_exec.py conf/aster_profile.sh lib/as_system.py .else RUN_DEPENDS+= xterm:${PORTSDIR}/x11/xterm \ wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${SHORT_TK_VER} @@ -65,6 +67,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_CLIENT PATCHDIR= ${MASTERDIR}/files.client PLIST_SUB= ASTKDIR=${LINSTDIR}/ASTK_CLIENT SERV="@comment " CLIENT="" vaster="" \ BWidget_DIR=${LINSTDIR}/ASTK_CLIENT/share/BWidget-${BWidget_VER} +PATCH2RM= lib/ASTK/init.tcl lib/ASTK/astkrc/outils share/tkselecteur.tcl .endif FILESDIR= ${PATCHDIR} @@ -140,15 +143,8 @@ ASTK_LANG= FR ASTK_LANG= ENG .endif -post-patch: -.if !defined(CLIENT_SEUL) - @${RM} ${WRKSRC}/conf/config.orig ${WRKSRC}/bin/as_exec.orig \ - ${WRKSRC}/bin/as_serv.orig ${WRKSRC}/lib/as_config.py.orig \ - ${WRKSRC}/lib/as_exec.py.orig ${WRKSRC}/conf/aster_profile.sh.orig -.else - @${RM} ${WRKSRC}/lib/ASTK/init.tcl.orig ${WRKSRC}/lib/ASTK/astkrc/outils.orig \ - ${WRKSRC}/share/tkselecteur.tcl.orig -.endif +pre-configure: + ${RM} ${PATCH2RM:C|^|${WRKSRC}/|:C|$|.orig|} do-configure: .if !defined(CLIENT_SEUL) diff --git a/cad/astk-serveur/files/patch-lib__as_system.py b/cad/astk-serveur/files/patch-lib__as_system.py new file mode 100644 index 000000000000..76ada1e2ec33 --- /dev/null +++ b/cad/astk-serveur/files/patch-lib__as_system.py @@ -0,0 +1,16 @@ +--- lib/as_system.py.orig Tue Dec 19 16:55:44 2006 ++++ lib/as_system.py Sat Feb 17 23:15:15 2007 +@@ -672,7 +672,12 @@ + from socket import gethostname, gethostbyaddr + if host == None: + host = gethostname() +- fqn, alias, ip = gethostbyaddr(host) ++ """ Fix for package building on the FreeBSD cluster which has no hostname ++ """ ++ try: ++ fqn, alias, ip = gethostbyaddr(host) ++ except: ++ fqn='put-your-host-name.here' + if fqn.find('localhost')>-1: + alias = [a for a in alias if a.find('localhost')<0] + if len(alias)>0: |