From 364f82df744765724bef8d10347b2cf265bd160c Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 24 Aug 2003 06:24:58 +0000 Subject: [PATCH] New port: Replaces NULL MySQL Field with value from top records Replaces NULL column(s) with value from last available column value PR: ports/55649 Submitted by: Aftab Jahan Subedar --- databases/Makefile | 1 + databases/mysql_last_value/Makefile | 24 ++++++++++++++++++++++++ databases/mysql_last_value/distinfo | 1 + databases/mysql_last_value/pkg-descr | 7 +++++++ databases/mysql_last_value/pkg-plist | 1 + 5 files changed, 34 insertions(+) create mode 100644 databases/mysql_last_value/Makefile create mode 100644 databases/mysql_last_value/distinfo create mode 100644 databases/mysql_last_value/pkg-descr create mode 100644 databases/mysql_last_value/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index 42baff7efbc8..3634a91c4fa4 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -69,6 +69,7 @@ SUBDIR += mysql40-server SUBDIR += mysql41-client SUBDIR += mysql41-server + SUBDIR += mysql_last_value SUBDIR += mysqlman SUBDIR += mysqltcl SUBDIR += mytop diff --git a/databases/mysql_last_value/Makefile b/databases/mysql_last_value/Makefile new file mode 100644 index 000000000000..773ca6ab99c6 --- /dev/null +++ b/databases/mysql_last_value/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: mysql_last_value +# Date created: 14th Aug 2003 +# Whom: Aftab Jahan Subedar +# $FreeBSD$ + +PORTNAME= mysql_last_value +PORTVERSION= 3.2 +CATEGORIES= databases +MASTER_SITES= http://www.geocities.com/jahan.geo/ + +MAINTAINER= jahan@bol-online.com +COMMENT= Replaces NULL value of current column with value from top row + +LIB_DEPENDS= mysqlclient.14:${PORTSDIR}/databases/mysql41-client + +USE_REINPLACE= yes + +post-patch: + ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mysql_last_value ${PREFIX}/bin + +.include diff --git a/databases/mysql_last_value/distinfo b/databases/mysql_last_value/distinfo new file mode 100644 index 000000000000..2668840fde6f --- /dev/null +++ b/databases/mysql_last_value/distinfo @@ -0,0 +1 @@ +MD5 (mysql_last_value-3.2.tar.gz) = 5e079427683e11f3edbde6e02913518e diff --git a/databases/mysql_last_value/pkg-descr b/databases/mysql_last_value/pkg-descr new file mode 100644 index 000000000000..00ef11fa62bb --- /dev/null +++ b/databases/mysql_last_value/pkg-descr @@ -0,0 +1,7 @@ +mysql_last_value() replace null value of column from row above the current row. +Its like "same as above". + +WWW: http://www.geocities.com/jahan.geo + +-Aftab Jahan Subedar +jahan@bol-online.com jahan@geocities.com diff --git a/databases/mysql_last_value/pkg-plist b/databases/mysql_last_value/pkg-plist new file mode 100644 index 000000000000..176bdefefcf3 --- /dev/null +++ b/databases/mysql_last_value/pkg-plist @@ -0,0 +1 @@ +bin/mysql_last_value