aboutsummaryrefslogtreecommitdiffstats
path: root/www/pastebin/Makefile
diff options
context:
space:
mode:
authorJan T <jan@jantuomi.fi>2026-07-23 19:24:22 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-07-23 19:26:00 +0300
commitd57b5cd7830a5b4ed1437b1b648dca62a9b6eea3 (patch)
tree85c5e69424dd2fe4c07be9dbb1b4267ee1503c3d /www/pastebin/Makefile
*/*: initial commit
Diffstat (limited to 'www/pastebin/Makefile')
-rw-r--r--www/pastebin/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/www/pastebin/Makefile b/www/pastebin/Makefile
new file mode 100644
index 0000000..6c18ca7
--- /dev/null
+++ b/www/pastebin/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= pastebin
+PORTVERSION= 2.0.2
+CATEGORIES= www
+
+MAINTAINER= jan@jantuomi.fi
+COMMENT= Minimal pastebin service
+WWW= https://github.com/w4/bin
+
+LICENSE= MIT
+
+LIB_DEPENDS= libgit2.so:devel/libgit2 \
+ libonig.so:devel/oniguruma
+
+USES= cargo localbase
+
+USE_GITHUB= yes
+GH_ACCOUNT= w4
+GH_PROJECT= bin
+GH_TAGNAME= v2.0.2
+
+NO_CHECKSUM= yes
+
+CARGO_INSTALL= no
+
+PLIST_FILES= bin/pastebin
+
+SUB_LIST= PREFIX=${PREFIX}
+USE_RC_SUBR= pastebin
+
+.sinclude "${.CURDIR}/Makefile.crates"
+
+do-install:
+ ${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/release/bin ${STAGEDIR}${PREFIX}/bin/pastebin
+
+.include <bsd.port.mk>