1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- New port phprecipebook-2.38

- Small php/webapp to manage recipes and generate shopping lists.

PR:		ports/116708
Submitted by:	Guido Falsi <mad@madpilot.net> (maintainer)
Approved by:	linimon (mentor)
This commit is contained in:
Beech Rintoul 2007-12-12 09:11:24 +00:00
parent 6b6fb34f83
commit 65a4605c65
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203205
6 changed files with 101 additions and 0 deletions

View File

@ -983,6 +983,7 @@
SUBDIR += phpgedview
SUBDIR += phpmp
SUBDIR += phpmyfaq
SUBDIR += phprecipebook
SUBDIR += phproxy
SUBDIR += phpsurveyor
SUBDIR += phpwebapp

View File

@ -0,0 +1,60 @@
# New ports collection makefile for: phprecipebook
# Date created: 27 September 2007
# Whom: Guido Falsi <mad@madpilot.net>
#
# $FreeBSD$
#
PORTNAME= phprecipebook
PORTVERSION= 2.38
CATEGORIES= www deskutils
MASTER_SITES= SF
MAINTAINER= mad@madpilot.net
COMMENT= Small php webapp to manage your recipes
NO_BUILD= yes
USE_PHP= xml
WANT_PHP_WEB= yes
RECIPEDIR?= www/phprecipebook
SUB_FILES= pkg-message
OPTIONS= PGSQL "Use PostgreSQL instead of MySQL" off \
.include <bsd.port.pre.mk>
.if defined(WITH_PGSQL)
USE_PHP+= pgsql
USE_PGSQL= yes
.else
USE_PHP+= mysql
USE_MYSQL= yes
.endif
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
do-install:
@${MV} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${RECIPEDIR}
@if [ ! -f ${PREFIX}/${RECIPEDIR}/custom_inc.php ]; then \
${CP} ${PREFIX}/${RECIPEDIR}/custom_inc.php.sample \
${PREFIX}/${RECIPEDIR}/custom_inc.php ; fi
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${RECIPEDIR}
post-install:
@${ECHO} "@unexec if cmp -s %D/${RECIPEDIR}/custom_inc.php.sample \
%D/${RECIPEDIR}/custom_inc.php; \
then rm -f %D/${RECIPEDIR}/custom_inc.php; fi" >> ${TMPPLIST}
@${ECHO} "${RECIPEDIR}/custom_inc.php.sample" >> ${TMPPLIST}
@${ECHO} "@exec if [ ! -f %D/${RECIPEDIR}/custom_inc.php ] ; \
then cp -p %D/%F %B/custom_inc.php; fi" >> ${TMPPLIST}
@${ECHO} "@exec mkdir -p %D/${RECIPEDIR}/modules/settings" >> ${TMPPLIST}
@${FIND} ${WRKSRC}/${file} -not -type d -not -name 'custom_inc.php*' \
| ${SED} -ne 's,^${WRKSRC},${RECIPEDIR},p' >> ${TMPPLIST}
@${FIND} -d ${WRKSRC}/${file} -type d \
| ${SED} -ne 's,^${WRKSRC},@dirrm ${RECIPEDIR},p' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${RECIPEDIR}' >> ${TMPPLIST}
@${SED} -e 's|%%RECIPEDIR%%|${PREFIX}/${RECIPEDIR}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (phprecipebook-2.38.tar.gz) = 864ae8fb66213c2796fdd4b7a58a053d
SHA256 (phprecipebook-2.38.tar.gz) = c05d53f849ef84a0b6690c6d20e3f703e215a7ef0a0b1990354ffe14bd34d2b3
SIZE (phprecipebook-2.38.tar.gz) = 556970

View File

@ -0,0 +1,20 @@
--- sql/recipedb.mysql.orig 2007-03-31 20:22:08.000000000 +0200
+++ sql/recipedb.mysql 2007-09-27 17:10:02.000000000 +0200
@@ -154,7 +154,7 @@
PRIMARY KEY (meal_id));
CREATE TABLE recipe_mealplans (
- mplan_date DATE NOT NULL DEFAULT 'now()',
+ mplan_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
mplan_meal INT NOT NULL REFERENCES recipe_meals(meal_id) ON DELETE CASCADE,
mplan_recipe INT NOT NULL REFERENCES recipe_recipes(recipe_id) ON DELETE CASCADE,
mplan_servings INT NOT NULL DEFAULT 0,
@@ -164,7 +164,7 @@
CREATE TABLE recipe_reviews (
review_recipe INT NOT NULL REFERENCES recipe_recipes(recipe_id) ON DELETE CASCADE,
review_comments VARCHAR(255) NOT NULL,
- review_date TIMESTAMP DEFAULT 'now()',
+ review_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
review_owner VARCHAR(32) NOT NULL REFERENCES security_users(user_login) ON DELETE SET NULL ON UPDATE CASCADE,
PRIMARY KEY (review_recipe,review_comments,review_owner));

View File

@ -0,0 +1,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Please read:
%%RECIPEDIR%%/docs/INSTALL.UNIX
If you are upgrading then read this too:
%%RECIPEDIR%%/docs/UPGRADE.TXT
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

View File

@ -0,0 +1,8 @@
This projects purpose is to provide a convenient way to construct
a weekly shopping list from a known list of recipes. The user can
view, add, search and modify recipes like any decent web based
cookbook. This cookbook provides the extra functionality to add
recipes to a shopping list. The shopping list then can be saved or
printed out.
WWW: http://phprecipebook.sourceforge.net/