From owner-freebsd-ports Mon Nov 18 22:23:15 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA18892 for ports-outgoing; Mon, 18 Nov 1996 22:23:15 -0800 (PST) Received: from dfw-ix9.ix.netcom.com (dfw-ix9.ix.netcom.com [206.214.98.9]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA18883 for ; Mon, 18 Nov 1996 22:23:04 -0800 (PST) Received: from silvia.HIP.Berkeley.EDU (wck-ca14-53.ix.netcom.com [207.92.174.117]) by dfw-ix9.ix.netcom.com (8.6.13/8.6.12) with ESMTP id WAA06540; Mon, 18 Nov 1996 22:20:04 -0800 Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.2/8.6.9) id WAA27201; Mon, 18 Nov 1996 22:20:00 -0800 (PST) Date: Mon, 18 Nov 1996 22:20:00 -0800 (PST) Message-Id: <199611190620.WAA27201@silvia.HIP.Berkeley.EDU> To: pgiffuni@fps.biblos.unal.edu.co CC: chuckr@glue.umd.edu, joerg_wunsch@uriah.heep.sax.de, ports@freebsd.org In-reply-to: <329175B4.476C@ingenieria.ingsala.unal.edu.co> (m230761@ingenieria.ingsala.unal.edu.co) Subject: Re: Are broken ports useful? From: asami@freebsd.org (Satoshi Asami) Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * INSTALL = @INSTALL@ * INSTALL_PROGRAM = @INSTALL_PROGRAM@ * INSTALL_DATA = @INSTALL_DATA@ * INSTALL_USER = @USER@ * * on the Makefile I found this: * * INSTALL = /usr/bin/install -c -o bin -g bin * INSTALL_PROGRAM = /usr/bin/install -c -s -o bin -g bin -m 555 * * What do I look for? What must I change? (it's my first port!) There are three ways around this: (1) Look at the configure script, see where it defines INSTALL_PROGRAM and patch that to not include -s. Then in your toplevel Makefile (i.e., /usr/ports/foo/bar/Makefile), add a post-install: target to strip the real binaries. (2) Look at the part in the Makefile.in that is using ${INSTALL_PROGRAM} to install scripts and change that to ${INSTALL} -m 555 or something. Note that INSTALL_PROGRAM is passed through the environment to the configure script by bsd.port.mk, so configure might be picking that up. If so, (1) won't work. In which case: (3) Add "STRIP=" (with nothing to the right of "=") in your toplevel Makefile. Then add a post-install: target like in (1). Satoshi