Import of pkgsrc-2014Q1
This commit is contained in:
5
devel/startbug1/DESCR
Normal file
5
devel/startbug1/DESCR
Normal file
@@ -0,0 +1,5 @@
|
||||
Starbug1 is lightweight Bug Tracking System. It act as CGI.
|
||||
It is designed to the following appliations.
|
||||
|
||||
* Closed source small development
|
||||
* Development with less resources
|
||||
14
devel/startbug1/INSTALL
Normal file
14
devel/startbug1/INSTALL
Normal file
@@ -0,0 +1,14 @@
|
||||
#!@SH@
|
||||
#
|
||||
# $NetBSD: INSTALL,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
WWWGRP="@WWWGRP@"
|
||||
WWWOWN="@WWWOWN@"
|
||||
SB_DIR="@PREFIX@/@SB_DIR@"
|
||||
|
||||
case "${STAGE}" in
|
||||
POST-INSTALL)
|
||||
${CHOWN} -R ${WWWOWN} ${SB_DIR} &&
|
||||
${CHGRP} -R ${WWWGRP} ${SB_DIR}
|
||||
;;
|
||||
esac
|
||||
23
devel/startbug1/MESSAGE
Normal file
23
devel/startbug1/MESSAGE
Normal file
@@ -0,0 +1,23 @@
|
||||
===========================================================================
|
||||
$NetBSD: MESSAGE,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
To use Starbug1, you will need to perform the following steps.
|
||||
|
||||
1. Install Apache httpd server, for example www/apache24.
|
||||
|
||||
2. Be sure to have the following lines in ${PREFIX}/etc/httpd/httpd.conf
|
||||
|
||||
LoadModule cgid_module lib/httpd/mod_cgid.so
|
||||
Alias /starbug1 /usr/pkg/share/starbug1
|
||||
<Directory "/usr/pkg/share/starbug1">
|
||||
ErrorDocument 500 /starbug1/error.html
|
||||
AddHandler cgi-script .cgi
|
||||
Options +ExecCGI
|
||||
DirectoryIndex index.cgi
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
3. Start apache httpd.
|
||||
|
||||
4. Access http://localhost/starbug1/ and setup it.
|
||||
===========================================================================
|
||||
60
devel/startbug1/Makefile
Normal file
60
devel/startbug1/Makefile
Normal file
@@ -0,0 +1,60 @@
|
||||
# $NetBSD: Makefile,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
DISTNAME= starbug1-1.6.01
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=starbug1/57514/}
|
||||
|
||||
MAINTAINER= ryoon@NetBSD.org
|
||||
HOMEPAGE= http://starbug1.com/
|
||||
COMMENT= Light weight Bug Tracking System written in C and Perl
|
||||
LICENSE= gnu-gpl-v2
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
BUILD_DEPENDS+= p5-JSON-[0-9]*:../../converters/p5-JSON
|
||||
BUILD_DEPENDS+= p5-Locale-PO-[0-9]*:../../devel/p5-Locale-PO
|
||||
BUILD_DEPENDS+= rsync-[0-9]*:../../net/rsync
|
||||
|
||||
DEPENDS+= p5-HTTP-Date-[0-9]*:../../www/p5-HTTP-Date
|
||||
DEPENDS+= p5-YAML-Syck-[0-9]*:../../textproc/p5-YAML-Syck
|
||||
|
||||
USE_TOOLS+= gmake msgfmt pax perl
|
||||
|
||||
# Build tool
|
||||
REPLACE_PERL+= bin/po2json
|
||||
|
||||
# Installed programs
|
||||
REPLACE_PERL+= check.cgi
|
||||
REPLACE_PERL+= script/*.pl
|
||||
|
||||
BUILD_TARGET= webapp
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
SB_DIR= share/starbug1
|
||||
|
||||
CONF_FILES+= ${SB_DIR}/dot.htaccess ${SB_DIR}/.htaccess
|
||||
|
||||
APACHE_USER?= www
|
||||
APACHE_GROUP?= www
|
||||
PKG_GROUPS= ${APACHE_GROUP}
|
||||
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
|
||||
|
||||
PKG_USERS_VARS= APACHE_USER
|
||||
PKG_GROUPS_VARS= APACHE_GROUP
|
||||
|
||||
BUILD_DEFS+= APACHE_GROUP APACHE_USER
|
||||
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
|
||||
SB_DIR=${SB_DIR}
|
||||
|
||||
do-install:
|
||||
chmod 644 ${WRKSRC}/dist/starbug1/debug.log
|
||||
cd ${WRKSRC}/dist && ${FIND} starbug1 -type f \! -name '*.orig' -print | \
|
||||
pax -rw -pmp ${DESTDIR}${PREFIX}/share
|
||||
|
||||
.include "../../converters/libiconv/buildlink3.mk"
|
||||
BUILDLINK_API_DEPENDS.sqlite3+=sqlite3>=3.7.17
|
||||
.include "../../databases/sqlite3/buildlink3.mk"
|
||||
.include "../../devel/gettext-lib/buildlink3.mk"
|
||||
.include "../../www/cgic/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
57
devel/startbug1/PLIST
Normal file
57
devel/startbug1/PLIST
Normal file
@@ -0,0 +1,57 @@
|
||||
@comment $NetBSD: PLIST,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
share/starbug1/COPYING_cgic
|
||||
share/starbug1/admin.cgi
|
||||
share/starbug1/check.cgi
|
||||
share/starbug1/css/default.css
|
||||
share/starbug1/css/style.css
|
||||
share/starbug1/css/top.css
|
||||
share/starbug1/debug.log
|
||||
share/starbug1/dot.htaccess
|
||||
share/starbug1/env-check.html
|
||||
share/starbug1/error.html
|
||||
share/starbug1/favicon.ico
|
||||
share/starbug1/img/copy.gif
|
||||
share/starbug1/img/h2.png
|
||||
share/starbug1/img/li.gif
|
||||
share/starbug1/img/rss.png
|
||||
share/starbug1/img/starbug1.jpg
|
||||
share/starbug1/img/valid-xhtml10.gif
|
||||
share/starbug1/index.cgi
|
||||
share/starbug1/js/Gettext.js
|
||||
share/starbug1/js/attachment_file_display_setting_submit.js
|
||||
share/starbug1/js/calendar.js
|
||||
share/starbug1/js/circle.js
|
||||
share/starbug1/js/delete_item.js
|
||||
share/starbug1/js/edit_top.js
|
||||
share/starbug1/js/excanvas-compressed.js
|
||||
share/starbug1/js/form_changed.js
|
||||
share/starbug1/js/graph.js
|
||||
share/starbug1/js/lang/en_US.json
|
||||
share/starbug1/js/lang/ja_JP.json
|
||||
share/starbug1/js/lang/zh_CN.json
|
||||
share/starbug1/js/lang/zh_TW.json
|
||||
share/starbug1/js/line.js
|
||||
share/starbug1/js/management.js
|
||||
share/starbug1/js/new_item.js
|
||||
share/starbug1/js/prototype.js
|
||||
share/starbug1/js/register.js
|
||||
share/starbug1/js/register_at_once.js
|
||||
share/starbug1/js/register_at_once_submit.js
|
||||
share/starbug1/js/reply.js
|
||||
share/starbug1/js/style.js
|
||||
share/starbug1/js/ticket_list.js
|
||||
share/starbug1/js/tooltip.js
|
||||
share/starbug1/js/validate.js
|
||||
share/starbug1/locale/en/LC_MESSAGES/starbug1.mo
|
||||
share/starbug1/locale/ja/LC_MESSAGES/starbug1.mo
|
||||
share/starbug1/locale/zh/LC_MESSAGES/starbug1.mo
|
||||
share/starbug1/locale/zh_TW/LC_MESSAGES/starbug1.mo
|
||||
share/starbug1/script/dump_attachmentfiles.pl
|
||||
share/starbug1/script/pickup_template
|
||||
share/starbug1/script/pickup_template.sql
|
||||
share/starbug1/script/post-commit-svn.pl
|
||||
share/starbug1/script/sample.hook_irc.sh
|
||||
share/starbug1/script/sample.hook_sendmail.pl
|
||||
share/starbug1/script/sample.irc.pl
|
||||
share/starbug1/template/ja_JP/qa.template
|
||||
share/starbug1/template/ja_JP/todo.template
|
||||
10
devel/startbug1/distinfo
Normal file
10
devel/startbug1/distinfo
Normal file
@@ -0,0 +1,10 @@
|
||||
$NetBSD: distinfo,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
SHA1 (starbug1-1.6.01.tar.gz) = c9ba41a1ff1fe8a83449edc67b20e8568143b587
|
||||
RMD160 (starbug1-1.6.01.tar.gz) = 70b91e54b6eacf747ab6c035c12bf713fd9178b5
|
||||
Size (starbug1-1.6.01.tar.gz) = 244562 bytes
|
||||
SHA1 (patch-Makefile) = 041ba063b20728efece249751dd80e23011ac1f3
|
||||
SHA1 (patch-admin.c) = dd1331b88358f2b6bbfcc5a95e3a50040dd64a77
|
||||
SHA1 (patch-index.c) = 9b7037343c40c8e2df6f5ebc8e4c6daf79749ee2
|
||||
SHA1 (patch-template_ja__JP_qa.template) = 1b35e7332ae0085bb67a4ea675b510cb52667d58
|
||||
SHA1 (patch-util.c) = 391bf2238e3614f551d8ae8b4d7fef96e0fbdebd
|
||||
20
devel/startbug1/options.mk
Normal file
20
devel/startbug1/options.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
# $NetBSD: options.mk,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.starbug1
|
||||
PKG_OPTIONS_REQUIRED_GROUPS= lang
|
||||
PKG_OPTIONS_GROUP.lang= lang-en lang-ja lang-zh-cn
|
||||
PKG_SUGGESTED_OPTIONS= lang-en
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mlang-en)
|
||||
BUILD_MAKE_FLAGS= INITIAL_LOCALE=en_US
|
||||
.endif
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mlang-ja)
|
||||
BUILD_MAKE_FLAGS= INITIAL_LOCALE=ja_JP
|
||||
.endif
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mlang-zh-cn)
|
||||
BUILD_MAKE_FLAGS= INITIAL_LOCALE=zh_CN
|
||||
.endif
|
||||
17
devel/startbug1/patches/patch-Makefile
Normal file
17
devel/startbug1/patches/patch-Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
$NetBSD: patch-Makefile,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
* Pass LDFLAGS to pass RPATH
|
||||
|
||||
--- Makefile.orig 2012-11-28 06:40:22.000000000 +0000
|
||||
+++ Makefile
|
||||
@@ -27,8 +27,8 @@ ifdef STATIC_LFLAGS
|
||||
CFLAGS = -I${ALT_LIB_PATH}/include -I/usr/include -I/usr/local/include -I. -Idist/cgic205 -Idist/sqlite-3.6.23 -DVERSION=\"${VERSION}\" -DCOPYRIGHT=\"${COPYRIGHT}\" -DINITIAL_LOCALE=\"${INITIAL_LOCALE}\" -DDISPLAY_REMOTE_HOST=${DISPLAY_REMOTE_HOST} -DLINK_DISABLED=${LINK_DISABLED} -O3 -Wall
|
||||
LFLAGS = -L${ALT_LIB_PATH}/lib -L/usr/lib -L/usr/local/lib dist/cgic205/cgic.o dist/sqlite-3.6.23/sqlite3.o
|
||||
else
|
||||
- CFLAGS = -I${ALT_LIB_PATH}/include -I/usr/include -I/usr/local/include -I. -DVERSION=\"${VERSION}\" -DCOPYRIGHT=\"${COPYRIGHT}\" -DINITIAL_LOCALE=\"${INITIAL_LOCALE}\" -DDISPLAY_REMOTE_HOST=${DISPLAY_REMOTE_HOST} -DLINK_DISABLED=${LINK_DISABLED} -O3 -Wall
|
||||
- LFLAGS = -L${ALT_LIB_PATH}/lib -L/usr/lib -L/usr/local/lib -lsqlite3 -lcgic
|
||||
+ CFLAGS += -I${ALT_LIB_PATH}/include -I/usr/include -I/usr/local/include -I. -DVERSION=\"${VERSION}\" -DCOPYRIGHT=\"${COPYRIGHT}\" -DINITIAL_LOCALE=\"${INITIAL_LOCALE}\" -DDISPLAY_REMOTE_HOST=${DISPLAY_REMOTE_HOST} -DLINK_DISABLED=${LINK_DISABLED} -O3 -Wall
|
||||
+ LFLAGS = -L${ALT_LIB_PATH}/lib -L/usr/lib -L/usr/local/lib -lsqlite3 -lcgic ${LDFLAGS}
|
||||
endif
|
||||
|
||||
ifeq ($(CC_VERSION), 3)
|
||||
16
devel/startbug1/patches/patch-admin.c
Normal file
16
devel/startbug1/patches/patch-admin.c
Normal file
@@ -0,0 +1,16 @@
|
||||
$NetBSD: patch-admin.c,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
* Follow pkgsrc www/cgic manner
|
||||
|
||||
--- admin.c.orig 2012-11-28 06:40:22.000000000 +0000
|
||||
+++ admin.c
|
||||
@@ -7,7 +7,8 @@
|
||||
#include "db_top.h"
|
||||
|
||||
/* management main */
|
||||
-int cgiMain() {
|
||||
+int main() {
|
||||
+ cgiInit();
|
||||
ActionType type = analysis_action();
|
||||
int ret = 0;
|
||||
|
||||
16
devel/startbug1/patches/patch-index.c
Normal file
16
devel/startbug1/patches/patch-index.c
Normal file
@@ -0,0 +1,16 @@
|
||||
$NetBSD: patch-index.c,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
* * Follow pkgsrc www/cgic manner
|
||||
|
||||
--- index.c.orig 2012-11-28 06:40:22.000000000 +0000
|
||||
+++ index.c
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "db_top.h"
|
||||
|
||||
/* index.cgi */
|
||||
-int cgiMain() {
|
||||
+int main() {
|
||||
+ cgiInit();
|
||||
double start = get_microseconds();
|
||||
ActionType type = analysis_action();
|
||||
int ret = 0;
|
||||
15
devel/startbug1/patches/patch-template_ja__JP_qa.template
Normal file
15
devel/startbug1/patches/patch-template_ja__JP_qa.template
Normal file
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-template_ja__JP_qa.template,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
* From https://github.com/smeghead/starbug1/commit/f41a7ef088745982e990c4ddc06b765e6affc635
|
||||
|
||||
--- template/ja_JP/qa.template.orig 2012-11-28 06:40:22.000000000 +0000
|
||||
+++ template/ja_JP/qa.template
|
||||
@@ -106,7 +106,7 @@ COMMIT;
|
||||
CREATE TABLE ticket( id integer not null primary key, original_message_id integer not null default 0, last_message_id integer not null default 0, registerdate text not null, closed integer not null default 0);
|
||||
CREATE INDEX index_ticket_0 on ticket (id, last_message_id, last_message_id, closed);
|
||||
CREATE TABLE message( id integer not null primary key, ticket_id integer not null, registerdate text, field1 text not null default '' , field2 text not null default '' , field3 text not null default '' , field4 text not null default '' , field5 text not null default '' , field6 text not null default '' , field7 text not null default '' , field8 text not null default '' , field9 text not null default '', field10 text not null default '', field11 text not null default '', field12 text not null default '', field13 text not null default '', field14 text not null default '');
|
||||
-CREATE TABLE element_file( id integer not null primary key, message_id integer not null, element_type_id integer not null, filename text, size integer, mime_type text, content blob );
|
||||
+CREATE TABLE element_file( id integer not null primary key, message_id integer not null, element_type_id integer not null, filename text, size integer, mime_type text, content blob, deleted int default 0 );
|
||||
BEGIN TRANSACTION;
|
||||
CREATE TABLE wiki( id integer not null primary key, name text, content text, registerdate text );
|
||||
INSERT INTO "wiki" VALUES(1,'top','*編集可能領域
|
||||
15
devel/startbug1/patches/patch-util.c
Normal file
15
devel/startbug1/patches/patch-util.c
Normal file
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-util.c,v 1.1 2014/01/08 14:59:15 ryoon Exp $
|
||||
|
||||
* Fix build
|
||||
|
||||
--- util.c.orig 2012-11-28 06:40:22.000000000 +0000
|
||||
+++ util.c
|
||||
@@ -836,7 +836,7 @@ void set_locale(char* locale)
|
||||
putenv(envstr);
|
||||
}
|
||||
#endif
|
||||
- setlocale(LC_ALL, locale_utf8);
|
||||
+ setlocale("LC_ALL", locale_utf8);
|
||||
bindtextdomain("starbug1", locale_dir);
|
||||
textdomain("starbug1");
|
||||
#ifdef _WIN32
|
||||
Reference in New Issue
Block a user