pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

swinehub: newly created package for Subversion Frontend



Module Name:	pkgsrc-wip
Committed By:	NishiOwO <nishi%e3t.cc@localhost>
Pushed By:	nishi
Date:		Sun Aug 20 10:19:10 2023 +0900
Changeset:	732b603178b92308201d76cfcfc8c2175d8674d6

Modified Files:
	Makefile
Added Files:
	swinehub/DESCR
	swinehub/MESSAGE
	swinehub/Makefile
	swinehub/PLIST
	swinehub/distinfo
	swinehub/patches/patch-GNUmakefile.in

Log Message:
swinehub: newly created package for Subversion Frontend

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=732b603178b92308201d76cfcfc8c2175d8674d6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                              |  1 +
 swinehub/DESCR                        |  1 +
 swinehub/MESSAGE                      | 33 +++++++++++++++++++++++++++++++++
 swinehub/Makefile                     | 31 +++++++++++++++++++++++++++++++
 swinehub/PLIST                        |  7 +++++++
 swinehub/distinfo                     |  6 ++++++
 swinehub/patches/patch-GNUmakefile.in | 30 ++++++++++++++++++++++++++++++
 7 files changed, 109 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 654d63f6ba..fade1fce7e 100644
--- a/Makefile
+++ b/Makefile
@@ -5336,6 +5336,7 @@ SUBDIR+=	swftools
 SUBDIR+=	swift
 SUBDIR+=	swift-git
 SUBDIR+=	swig4
+SUBDIR+=	swinehub
 SUBDIR+=	swisseph
 SUBDIR+=	sxemacs
 SUBDIR+=	sxid
diff --git a/swinehub/DESCR b/swinehub/DESCR
new file mode 100644
index 0000000000..2193646212
--- /dev/null
+++ b/swinehub/DESCR
@@ -0,0 +1 @@
+SwineHub - Web Subversion Repository Management System
diff --git a/swinehub/MESSAGE b/swinehub/MESSAGE
new file mode 100644
index 0000000000..92ef08e390
--- /dev/null
+++ b/swinehub/MESSAGE
@@ -0,0 +1,33 @@
+===========================================================================
+$NetBSD$
+
+To use SwineHub with Apache HTTPd, load them:
+  1. mod_dav_svn
+  2. mod_authz_svn
+
+and their dependencies.
+
+And write following lines to the config:
+
+DocumentRoot /usr/pkg/var/swinehub/htdocs
+<Directory /usr/pkg/var/swinehub/htdocs>
+	Request all granted
+</Directory>
+<Directory /usr/pkg/var/swinehub/swinehub.cgi>
+	Request all granted
+</Directory>
+ScriptAlias /sw /usr/pkg/var/swinehub/swinehub.cgi
+<Location /svn>
+        DAV svn
+        SVNParentPath /var/svn
+        SVNListParentPath on
+        AuthType Basic
+        AuthName "EEE++ tEam repositories"
+        AuthUserFile /usr/pkg/var/swinehub/auth
+	AuthzSVNAccessFile /usr/pkg/var/swinehub/authz
+        <LimitExcept GET PROPFIND OPTIONS REPORT>
+                Require valid-user
+        </LimitExcept>
+</Location>
+
+===========================================================================
diff --git a/swinehub/Makefile b/swinehub/Makefile
new file mode 100644
index 0000000000..2ed9ff0e47
--- /dev/null
+++ b/swinehub/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+
+DISTNAME=	swinehub-1.501
+CATEGORIES=	www
+MASTER_SITES=	http://nishi.e3t.cc/pub/dist/swinehub/
+
+MAINTAINER=	nishi@nishi.boats
+HOMEPAGE=	http://sw.e3t.cc/sw/~e3team/swinehub
+COMMENT=	Subversion frontend
+LICENSE=	modified-bsd
+
+DEPENDS+=	subversion>=0:../../devel/subversion
+DEPENDS+=	ap24-subversion>=0:../../www/ap2-subversion
+DEPENDS+=	apache>=0:../../www/apache24
+
+USE_TOOLS+=	gmake
+
+GNU_CONFIGURE=	yes
+
+post-configure:
+	cd ${WRKSRC} && cp GNUmakefile Makefile
+
+post-build:
+	mkdir -p ${DESTDIR}/usr/pkg/var/swinehub/htdocs
+	touch ${DESTDIR}/usr/pkg/var/swinehub/auth
+	printf "[groups]\n#%%NEW-TEAM\n" > ${DESTDIR}/usr/pkg/var/swinehub/authz
+	cp ${WRKSRC}/bin/swinehub.cgi ${DESTDIR}/usr/pkg/var/swinehub/
+	cp ${WRKSRC}/dist/* ${DESTDIR}/usr/pkg/var/swinehub/htdocs/
+	mv ${DESTDIR}/usr/pkg/var/swinehub/htdocs/swinehub.png ${DESTDIR}/usr/pkg/var/swinehub/htdocs/icon.png
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/swinehub/PLIST b/swinehub/PLIST
new file mode 100644
index 0000000000..d1ab5df913
--- /dev/null
+++ b/swinehub/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+var/swinehub/auth
+var/swinehub/authz
+var/swinehub/htdocs/icon.png
+var/swinehub/htdocs/script.js
+var/swinehub/htdocs/style.css
+var/swinehub/swinehub.cgi
diff --git a/swinehub/distinfo b/swinehub/distinfo
new file mode 100644
index 0000000000..db74a35a47
--- /dev/null
+++ b/swinehub/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (swinehub-1.501.tar.gz) = 95856dc918a866b6e0b82326286aa25ce57f28216c43d138958fee2bf039e4d8
+SHA512 (swinehub-1.501.tar.gz) = 392e16c9efefd95318a7c470577dab2160a32e9a2e30d2c7747cc942efd7ecb396c423dea2bc6badcdb90de670b34ebdd9bc510a44252b02610be1e0efefdd3d
+Size (swinehub-1.501.tar.gz) = 65063 bytes
+SHA1 (patch-GNUmakefile.in) = 325d2b3a4071720f0e56d89ca8b4f722041dbe0b
diff --git a/swinehub/patches/patch-GNUmakefile.in b/swinehub/patches/patch-GNUmakefile.in
new file mode 100644
index 0000000000..06f90a4051
--- /dev/null
+++ b/swinehub/patches/patch-GNUmakefile.in
@@ -0,0 +1,30 @@
+$NetBSD$
+
+--- GNUmakefile.in.orig	2023-08-06 20:00:49.000000000 +0000
++++ GNUmakefile.in
+@@ -5,6 +5,9 @@ CC := @CC@
+ CFLAGS := @CFLAGS@
+ 
+ LIBS := @LIBS@
++PREFIX := @prefix@
++ETCDIR := @sysconfdir@
++VARDIR := @localstatedir@
+ 
+ BIN := ./bin
+ SRC := ./src
+@@ -35,6 +38,15 @@ $(OBJ)/%.o: $(SRC)/%.c $(INC)/swinehub/%
+ 	@echo "CC	$<	->	$@"
+ 	@$(CC) $(CFLAGS) -c -o $@ $<
+ 
++install: $(BIN)/swinehub.cgi
++	mkdir -p $(VARDIR)/swinehub
++	cp $(BIN)/swinehub.cgi $(VARDIR)/swinehub/
++	if [ ! -f "$(VARDIR)/swinehub/authz" ]; then ( printf "[groups]\n#%%NEW-TEAM\n" > $(VARDIR)/swinehub/authz ) ; fi
++	if [ ! -f "$(VARDIR)/swinehub/auth" ]; then touch $(VARDIR)/swinehub/auth ; fi
++	mkdir -p $(VARDIR)/swinehub/htdocs
++	cp ./dist/* $(VARDIR)/swinehub/htdocs/
++	mv $(VARDIR)/swinehub/htdocs/swinehub.png $(VARDIR)/swinehub/htdocs/icon.png
++
+ clean:
+ 	rm -rf $(OBJ)/*
+ 	rm -rf $(BIN)/*


Home | Main Index | Thread Index | Old Index