Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 16:57:16 +1030 (CST)
From:      "Daniel O'Connor" <doconnor@cain.gsoft.com.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10634: Update the hylafax port to do a client install
Message-ID:  <199903170627.QAA13770@cain.gsoft.com.au>

next in thread | raw e-mail | index | archive | help

>Number:         10634
>Category:       ports
>Synopsis:       Update the hylafax port to do a client install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 16 22:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Daniel O'Connor
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
Genesis Software
>Environment:
2.2.7-ish system, latest ports

>Description:
This is a patch for the hylafax port to handle a client install if
CLIENT_INSTALL is defined during installation. This does an install which
only puts in the programs used for clients.

>How-To-Repeat:


>Fix:

Patch enclosed, also available at ftp://ftp.gsoft.com.au/pub/hylafax.patch


diff --new-file -cr hylafax/Makefile hylafax.new/Makefile
*** hylafax/Makefile	Wed Mar 17 16:51:29 1999
--- hylafax.new/Makefile	Wed Mar 17 16:52:22 1999
***************
*** 19,24 ****
--- 19,29 ----
  Y2K=		http://www.hylafax.org/HylaFAQ/Q189.html
  WWW_SITE=	http://www.hylafax.org
  
+ .if defined(CLIENT_INSTALL)
+ PKGNAME=	hylafax_client-4.0.2
+ INSTALL_TARGET=	installClient
+ .endif
+ 
  BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash2 \
  		${PREFIX}/lib/afm/Courier:${PORTSDIR}/print/afm
  # no dependency on ghostscript because we don't know which
***************
*** 33,40 ****
--- 38,51 ----
  		--with-LIBTIFF="-L${PREFIX}/lib -ltiff -ljpeg" \
  		--with-TIFFINC="${PREFIX}/include"
  HAS_CONFIGURE=	yes
+ 
  MAN1=	hylafax.1 faxalter.1 faxcover.1 faxmail.1 faxrm.1 faxstat.1 sendfax.1 \
  	sendpage.1 sgi2fax.1 textfmt.1
+ 
+ .if defined(CLIENT_INSTALL)
+ PLIST=	${PKGDIR}/PLIST.client
+ MAN5=	pagesizes.5f typerules.5f	
+ .else
  MAN5=	pagesizes.5f typerules.5f \
  	hylafax.5f cid.5f config.5f destctrls.5f dialrules.5f hosts.5f \
  	info.5f log.5f pagermap.5f recvq.5f sendq.5f shutdown.5f status.5f \
***************
*** 48,60 ****
  
  SUID_EXES= 	${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
  		${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
! 
  post-install:
  	chown uucp ${SUID_EXES}
  	chmod 4555 ${SUID_EXES}
  	@if [ ! -f ${PREFIX}/etc/rc.d/hylafax.sh.sample ]; then	\
  		cp ${FILESDIR}/hylafax.sh.sample ${PREFIX}/etc/rc.d;	\
  	fi
  	${CAT} ${PKGDIR}/MESSAGE
  
  .include <bsd.port.mk>
--- 59,83 ----
  
  SUID_EXES= 	${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
  		${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
! .endif
  post-install:
+ .if defined(SUID_EXES)
  	chown uucp ${SUID_EXES}
  	chmod 4555 ${SUID_EXES}
+ .endif
  	@if [ ! -f ${PREFIX}/etc/rc.d/hylafax.sh.sample ]; then	\
  		cp ${FILESDIR}/hylafax.sh.sample ${PREFIX}/etc/rc.d;	\
  	fi
+ .if !defined(CLIENT_INSTALL)
  	${CAT} ${PKGDIR}/MESSAGE
+ .endif
+ 
+ pre-install:
+ .if defined(CLIENT_INSTALL)
+ 	@${ECHO} "Doing client installation"
+ .else
+ 	@${ECHO} "If you wish to do a client install define 'CLIENT_INSTALL'"
+ 	@${ECHO} "during installation."
+ .endif
  
  .include <bsd.port.mk>
diff --new-file -cr hylafax/pkg/PLIST.client hylafax.new/pkg/PLIST.client
*** hylafax/pkg/PLIST.client	Thu Jan  1 09:30:00 1970
--- hylafax.new/pkg/PLIST.client	Wed Mar 17 16:34:04 1999
***************
*** 0 ****
--- 1,17 ----
+ @cwd /usr/local
+ bin/faxalter
+ bin/faxcover
+ bin/faxmail
+ bin/faxrm
+ bin/faxstat
+ bin/sendfax
+ bin/sendpage
+ lib/fax/faxcover.ps
+ lib/fax/faxmail.ps
+ lib/fax/pagesizes
+ lib/fax/typerules
+ sbin/faxsetup
+ sbin/faxsetup.bsdi
+ sbin/faxsetup.irix
+ sbin/faxsetup.linux
+ sbin/textfmt



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903170627.QAA13770>