pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
MagickaBBS: add package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Fri May 16 14:50:07 2025 +0200
Changeset: 8281b01f7967bc183773ae677bf6f54fea19c40d
Modified Files:
Makefile
Added Files:
MagickaBBS/DESCR
MagickaBBS/Makefile
MagickaBBS/PLIST
MagickaBBS/TODO
MagickaBBS/distinfo
MagickaBBS/patches/patch-Makefile.freebsd
MagickaBBS/patches/patch-Xmodem_Makefile
MagickaBBS/patches/patch-jamlib_Makefile.linux
Log Message:
MagickaBBS: add package
Builds and installs on NetBSD, needs testing.
Some dependencies could be split out.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8281b01f7967bc183773ae677bf6f54fea19c40d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
MagickaBBS/DESCR | 3 +++
MagickaBBS/Makefile | 34 ++++++++++++++++++++++++++
MagickaBBS/PLIST | 18 ++++++++++++++
MagickaBBS/TODO | 6 +++++
MagickaBBS/distinfo | 8 ++++++
MagickaBBS/patches/patch-Makefile.freebsd | 14 +++++++++++
MagickaBBS/patches/patch-Xmodem_Makefile | 15 ++++++++++++
MagickaBBS/patches/patch-jamlib_Makefile.linux | 15 ++++++++++++
Makefile | 3 +++
9 files changed, 116 insertions(+)
diffs:
diff --git a/MagickaBBS/DESCR b/MagickaBBS/DESCR
new file mode 100644
index 0000000000..cca98a41dc
--- /dev/null
+++ b/MagickaBBS/DESCR
@@ -0,0 +1,3 @@
+Magicka is meant to be a modern BBS system, using modern technologies,
+like Sqlite3, IRC, long filenames, etc., while still retaining the
+classic BBS feel: ANSI & Telnet, and good old ZModem.
diff --git a/MagickaBBS/Makefile b/MagickaBBS/Makefile
new file mode 100644
index 0000000000..c6b16a255d
--- /dev/null
+++ b/MagickaBBS/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME= MagickaBBS-0.2alpha1
+CATEGORIES= comms
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Cloudxtreme/}
+GITHUB_TAG= v0.2-alpha1
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Cloudxtreme/MagickaBBS/
+COMMENT= Bulletin board system
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c
+USE_TOOLS+= gmake pax
+
+BUILD_DIRS= jamlib Xmodem lua .
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/doc/MagickaBBS
+INSTALLATION_DIRS+= share/examples/MagickaBBS
+
+post-patch:
+ cd ${WRKSRC} && \
+ ${LN} jamlib/Makefile.linux jamlib/Makefile && \
+ ${LN} Makefile.freebsd Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/magicka ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/MagickaBBS
+ cd ${WRKSRC}/ansis_default && ${PAX} -pp -rw * ${DESTDIR}${PREFIX}/share/examples/MagickaBBS/ansis
+ cd ${WRKSRC}/config_default && ${PAX} -pp -rw * ${DESTDIR}${PREFIX}/share/examples/MagickaBBS/config
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/MagickaBBS/PLIST b/MagickaBBS/PLIST
new file mode 100644
index 0000000000..713cddaf1f
--- /dev/null
+++ b/MagickaBBS/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD$
+bin/magicka
+share/doc/MagickaBBS/README.md
+share/examples/MagickaBBS/ansis/bulletin0.ans
+share/examples/MagickaBBS/ansis/bulletin1.ans
+share/examples/MagickaBBS/ansis/doors.ans
+share/examples/MagickaBBS/ansis/filemenu.ans
+share/examples/MagickaBBS/ansis/goodbye.ans
+share/examples/MagickaBBS/ansis/issue.ans
+share/examples/MagickaBBS/ansis/mailmenu.ans
+share/examples/MagickaBBS/ansis/mainmenu.ans
+share/examples/MagickaBBS/ansis/newuser.ans
+share/examples/MagickaBBS/config/bbs.ini
+share/examples/MagickaBBS/config/doors.ini
+share/examples/MagickaBBS/config/filesgen.ini
+share/examples/MagickaBBS/config/illusionnet.ini
+share/examples/MagickaBBS/config/localmail.ini
+share/examples/MagickaBBS/config/s10.ini
diff --git a/MagickaBBS/TODO b/MagickaBBS/TODO
new file mode 100644
index 0000000000..c38e1e01fe
--- /dev/null
+++ b/MagickaBBS/TODO
@@ -0,0 +1,6 @@
+Switch to use lua package.
+
+Package Xmodem separately?
+Package jamlib separately?
+
+Test.
diff --git a/MagickaBBS/distinfo b/MagickaBBS/distinfo
new file mode 100644
index 0000000000..f2b13b1bc1
--- /dev/null
+++ b/MagickaBBS/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (MagickaBBS-0.2alpha1.tar.gz) = ccecf8d732f94b6ce178ab7911beb527991b21fa83d6434fae16d787c82636de
+SHA512 (MagickaBBS-0.2alpha1.tar.gz) = e2dc0896c8525ae0f024eecdf982c4398d60a541ac22c95aee7a88074dcde1ffa58291407666de6194993ef185227ff3f1e500cb89570c8c8ffda68c7fb51eeb
+Size (MagickaBBS-0.2alpha1.tar.gz) = 310556 bytes
+SHA1 (patch-Makefile.freebsd) = 91ddc64d8315fe19201f6e899bce1c6f00e4333d
+SHA1 (patch-Xmodem_Makefile) = 7c5776fe04dc010cd7cbe2539d18052d6d8c226b
+SHA1 (patch-jamlib_Makefile.linux) = c8d5e9b4cee12eee982c5b438e713b7057bc7073
diff --git a/MagickaBBS/patches/patch-Makefile.freebsd b/MagickaBBS/patches/patch-Makefile.freebsd
new file mode 100644
index 0000000000..3e651ec8a1
--- /dev/null
+++ b/MagickaBBS/patches/patch-Makefile.freebsd
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Add 'all' target.
+
+--- Makefile.freebsd.orig 2025-05-16 12:41:15.897595927 +0000
++++ Makefile.freebsd
+@@ -9,6 +9,7 @@ OBJ = inih/ini.o bbs.o main.o users.o ma
+ %.o: %.c $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS)
+
++all: magicka
+ magicka: $(OBJ)
+ $(CC) -o magicka -o $@ $^ $(CFLAGS) -L/usr/local/lib -lsqlite3 $(JAMLIB) $(ZMODEM) $(LUA) -lutil -lm
+
diff --git a/MagickaBBS/patches/patch-Xmodem_Makefile b/MagickaBBS/patches/patch-Xmodem_Makefile
new file mode 100644
index 0000000000..baf7e8191a
--- /dev/null
+++ b/MagickaBBS/patches/patch-Xmodem_Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add 'all' target.
+
+--- Xmodem/Makefile.orig 2025-05-16 12:43:29.498045499 +0000
++++ Xmodem/Makefile
+@@ -16,6 +16,8 @@ SRCS = crctab.c seriallog.c zmodem.c zmo
+
+ OBJS = $(SRCS:.c=.o)
+
++all: libzmodem.a
++
+ libzmodem.a: $(OBJS)
+ -rm -f libzmodem.a
+ $(AR) cru libzmodem.a $(OBJS)
diff --git a/MagickaBBS/patches/patch-jamlib_Makefile.linux b/MagickaBBS/patches/patch-jamlib_Makefile.linux
new file mode 100644
index 0000000000..f65c305967
--- /dev/null
+++ b/MagickaBBS/patches/patch-jamlib_Makefile.linux
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add 'all' target.
+
+--- jamlib/Makefile.linux.orig 2025-05-16 12:41:51.544074942 +0000
++++ jamlib/Makefile.linux
+@@ -4,6 +4,8 @@ RM = rm -f
+
+ OBJS = crc32.o mbase.o message.o lastread.o subpack.o structrw.o
+
++all: jamlib.a
++
+ jamlib.a : $(OBJS)
+ $(AR) jamlib.a $(OBJS)
+
diff --git a/Makefile b/Makefile
index 67b6f33ed8..40f5b86ef5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@
COMMENT= Work-in-progress packages
+SUBDIR+= 0ad
+SUBDIR+= 0ad-data
SUBDIR+= 2048-c
SUBDIR+= 3dsconv
SUBDIR+= 4ti2
@@ -31,6 +33,7 @@ SUBDIR+= LMtester
SUBDIR+= LuaJIT-git
SUBDIR+= LuaJIT2
SUBDIR+= LuaJIT21
+SUBDIR+= MagickaBBS
SUBDIR+= MoleInvasion
SUBDIR+= NetworkManager
SUBDIR+= OpenGLUT
Home |
Main Index |
Thread Index |
Old Index