From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 21 23:00:21 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 288851065672 for ; Sat, 21 May 2011 23:00:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D453A8FC12 for ; Sat, 21 May 2011 23:00:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4LN0Jtp074520 for ; Sat, 21 May 2011 23:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4LN0JCU074519; Sat, 21 May 2011 23:00:19 GMT (envelope-from gnats) Resent-Date: Sat, 21 May 2011 23:00:19 GMT Resent-Message-Id: <201105212300.p4LN0JCU074519@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jesse Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B9B91065672 for ; Sat, 21 May 2011 22:50:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0C42E8FC0A for ; Sat, 21 May 2011 22:50:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4LMoh97026707 for ; Sat, 21 May 2011 22:50:43 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4LMohbZ026706; Sat, 21 May 2011 22:50:43 GMT (envelope-from nobody) Message-Id: <201105212250.p4LMohbZ026706@red.freebsd.org> Date: Sat, 21 May 2011 22:50:43 GMT From: Jesse To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/157242: Updating port sysutils/swapexd for legacy compatibility X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 23:00:21 -0000 >Number: 157242 >Category: ports >Synopsis: Updating port sysutils/swapexd for legacy compatibility >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat May 21 23:00:19 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jesse >Release: 8.1 >Organization: RM >Environment: FreeBSD 8.1 32-bit >Description: Please find attached a patch which should allow swapexd to build and install on FreeBSD legacy (7.x). The attached patch also prevents new installs from over-writing swapexd's configuration file. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN /usr/ports/sysutils/swapexd/Makefile swapexd/Makefile --- /usr/ports/sysutils/swapexd/Makefile 2011-04-27 07:54:11.000000000 -0300 +++ swapexd/Makefile 2011-05-21 16:45:58.000000000 -0300 @@ -15,15 +15,22 @@ WRKSRC= ${WRKDIR}/${PORTNAME} -PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf etc/rc.d/swapexd +PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf.sample etc/rc.d/swapexd + +.include post-patch: @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/rc.d/swapexd @${REINPLACE_CMD} -e "s,/etc/,${PREFIX}/etc/,g" ${WRKSRC}/swapexd.h +.if ${OSVERSION} < 800076 + @${REINPLACE_CMD} -e "s,swapctl -s -m ,swapctl -s -h ,g" ${WRKSRC}/swapexd.c +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/ - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/swapexd ${PREFIX}/etc/rc.d -.include +# .include +.include + >Release-Note: >Audit-Trail: >Unformatted: