From owner-freebsd-ports Tue May 5 03:53:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA16467 for freebsd-ports-outgoing; Tue, 5 May 1998 03:53:39 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from dt050n33.san.rr.com (@dt050n33.san.rr.com [204.210.31.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA16456 for ; Tue, 5 May 1998 03:53:32 -0700 (PDT) (envelope-from Studded@san.rr.com) Received: from san.rr.com (Studded@localhost [127.0.0.1]) by dt050n33.san.rr.com (8.8.8/8.8.8) with ESMTP id DAA06086; Tue, 5 May 1998 03:53:29 -0700 (PDT) (envelope-from Studded@san.rr.com) Message-ID: <354EEFA9.575BFFEF@san.rr.com> Date: Tue, 05 May 1998 03:53:29 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-STABLE-0502 i386) MIME-Version: 1.0 To: Chuck Robey CC: FreeBSD-ports@FreeBSD.ORG Subject: Re: How-to question for port with no makefile References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Chuck Robey wrote: > > On Mon, 4 May 1998, Studded wrote: > > > I'm attempting to port an irc client written in perl (called sirc) that > > does not have a makefile. It does however need to build a small C binary > > used as a terminal emulator. I've looked through several of the various > > ports makefiles and at this point I'm basically awash in options. :-/ > > Take a look at the x11 font stuff for the copying ... for the small > binary, define NO_BUILD, and really build it in pre-build, which is a > target you write completely in the ports makefile. Ok, I did something similar perhaps someone can comment on this before I PR it? The port installs, deinstalls and packages cleanly. The package also installs and deletes cleanly. One caveat, I can't figure out how to delete the /usr/local/libexec/sirc directory, the post-deinstall: target didn't work for me. The other thing before I forget is if the "# Date created" is supposed to reflect the date the port is *first* created, why not call it that? :) # New ports collection makefile for: sirc # Version required: 2.211 # Date created: 4 May 1998 # Whom: Studded # # $Id$ # # If you need SOCKS support, define SOCKS_SERVER with # the name of your SOCKS proxy. You should also check # the default port and DNS setting in ${PREFIX}/bin/sirc # after installation. # SOCKS_SERVER= your.socks.proxy DISTNAME= sirc-2.211 CATEGORIES= net MASTER_SITES= http://www.eleves.ens.fr:8080/home/espel/sirc/ \ ftp://ftp1.dal.net/dalnet/clients/unix/sirc/ \ ftp://ftp2.dal.net/dalnet/clients/unix/sirc/ MAINTAINER= Studded@dal.net RUN_DEPENDS= perl5.00404:${PORTSDIR}/lang/perl5 pre-patch: @${CP} ${SCRIPTDIR}/sirc-proto ${WRKSRC} do-patch: .if defined(SOCKS_SERVER) @${PATCH} < ${PATCHDIR}/patch-aa @${SED} 's%SOCKS_SERVER\=%SOCKS_SERVER\=${SOCKS_SERVER}%' \ ${WRKSRC}/sirc-proto > ${WRKSRC}/sirc-socks @${SED} 's%PREFIX\=%PREFIX\=${PREFIX}%' ${WRKSRC}/sirc-socks \ > ${WRKSRC}/sirc .else @${SED} 's%PREFIX\=%PREFIX\=${PREFIX}%' ${WRKSRC}/sirc-proto \ > ${WRKSRC}/sirc .endif NO_CONFIGURE= "There is no configure or makefile in the source" do-build: ${CC} ${CFLAGS} ${WRKSRC}/ssfe.c -o ${WRKSRC}/ssfe -ltermcap do-install: ${MKDIR} -m 775 ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/n0thing.pl ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/sirc.help.gz ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/socks.pl ${PREFIX}/libexec/sirc ${INSTALL_SCRIPT} ${WRKSRC}/dsirc ${PREFIX}/libexec/sirc ${INSTALL_PROGRAM} ${WRKSRC}/ssfe ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/sirc ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/ssfe.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/sirc.1 ${PREFIX}/man/man1 .if defined(SOCKS_SERVER) ${ECHO} '&load("socks.pl");' >> ${PREFIX}/libexec/sirc/sircrc.pl .endif .if !defined(NOPORTDOCS) ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/PROGRAMMING ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/libexec/sirc ${INSTALL_DATA} ${WRKSRC}/README.socks ${PREFIX}/libexec/sirc .endif MAN1= sirc.1 ssfe.1 post-deinstall: ${RM} -r ${PREFIX}/libexec/sirc .include .include Thanks for any comments, Doug -- *** Chief Operations Officer, DALnet IRC network *** *** Proud designer and maintainer of the world's largest Internet *** Relay Chat server with 5,328 simultaneous connections. *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message