Hello Javier!
16 Jun 26 02:59, you wrote to me:
Hello Tanausu!
16 Jun 26 00:32, you wrote to me:
post-patch:
@${SED}\
-e 's,^\(#define __GVER_VENDOR_NAME__\).*,\1 "",'\
-e 's,\(#define __GVER_VENDOR_FIDO__\).*,\1 "",'\
-e 's,\(#define __GVER_VENDOR_EMAIL__\).*,\1 "${MAINTAINER}",'\
-e 's,\(#define __GVER_RELEASENAME__\).*,\1 "Golded+ FreeBSD port",'\
-e 's,\(#define __GVER_POSTVERSION__\).*,\1 "-b${SNAPDATE}",'\
<${WRKSRC}/golded3/mygolded.__h >${WRKSRC}/golded3/mygolded.h
Which Golded version are you compiling?
I could take the existing Makefile and update it with GitHub, like I
did yesterday with mine. But I have no idea how to officially update
an existing port.
You should create a bug report in bugs.freebsd.org to that port and
request to be a port maintainer, you can adopt an orphaned port.
More info on ports development.
https://docs.freebsd.org/en/books/porters-handbook/
Some diff will have to be submitted.
... When everything is coming your way, you're in the wrong lane.
--- CrashEdit 0.5.8 Linux
* Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)
Javier
Hi. I'm pasting the changes here. If it works well, I'll send you a netmail with a tgz file, because the Makefile won't compile if you have a "tab" incorrectly.
I'm still testing if it compiles completely.
git clone --depth=1
https://git.freebsd.org/ports.git
git pull
git reset --hard origin/main
git merge --ff-only origin/main
##################################
https://github.com/golded-plus/golded-plus
git ls-remote --tags
https://github.com/golded-plus/golded-plus.git
$ git ls-remote --tags
https://github.com/golded-plus/golded-plus.git a127c80b40c609288d33ea40bb1c740bf986adc4 refs/tags/debian_release_1_1_4_7+1_1_5_20020906-1 bf7f3c9b2f1a7f8ce80fb7cca07b12ab0bb4e893 refs/tags/golded-1.1.5-20180707
2a3e0861f96bcd633b8562d2f1440c5f97a380b0 refs/tags/golded-plus-1.1.5-20180707-1
1a251c6375081453a410bb8d647be120b8902de3 refs/tags/golded-plus-1.1.5-20260425
9ab4805a4f26240821991456ee786e299b897f7c refs/tags/release_1_1_4_4 fb0b5f464986655ae8a4ff2c33c36f89bc7e036a refs/tags/release_1_1_4_5 273c7029e9f6520036a8c0b3019bb9700713039a refs/tags/release_1_1_4_6 325b338365af33c8bb47c3b16bd255d1d1732c1a refs/tags/release_1_1_4_7 c451e3fb5049e53fa07eee4dc77ba17e253bec78 refs/tags/start
GH_TAGNAME= golded-plus-1.1.5-20260425
##################################
doas ee /usr/ports/news/golded+/Makefile
PORTNAME= golded+
PORTVERSION= 1.1.5.a${SNAPDATE}
CATEGORIES= news mail
MAINTAINER=
ports@FreeBSD.org
COMMENT= GoldEd+ (FTN message editor)
WWW=
https://github.com/golded-plus/golded-plus
LICENSE= GPLv2 LGPL20
LICENSE_COMB= multi
USES= gmake ncurses
USE_GITHUB= yes
GH_ACCOUNT= golded-plus
GH_PROJECT= golded-plus
GH_TAGNAME= golded-plus-1.1.5-20260425
SNAPDATE= 20260425
# WRKSRC eliminado - USE_GITHUB lo maneja automáticamente
DOCS= copying copying.lib license.txt notework.txt rusfaq.txt\
tips.txt notework.rus
PORTDOCS= ${DOCS} gold_ref.txt gold_usr.txt
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES
DOCS_SUB_LIST= NOTEWORK="Please read the ${DOCSDIR}/notework.txt before using ${PORTNAME}"
DOCS_SUB_LIST_OFF= NOTEWORK=""
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Dregister=
.endif
post-patch:
@${SED}\
-e 's,^\(#define __GVER_VENDOR_NAME__\).*,\1 "",'\
-e 's,\(#define __GVER_VENDOR_FIDO__\).*,\1 "",'\
-e 's,\(#define __GVER_VENDOR_EMAIL__\).*,\1 "${MAINTAINER}",'\
-e 's,\(#define __GVER_RELEASENAME__\).*,\1 "Golded+ FreeBSD port",'\
-e 's,\(#define __GVER_POSTVERSION__\).*,\1 "-${SNAPDATE}",'\
<${WRKSRC}/golded3/mygolded.__h >${WRKSRC}/golded3/mygolded.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/gedlnx ${STAGEDIR}${PREFIX}/bin/golded
${INSTALL_PROGRAM} ${WRKSRC}/bin/gnlnx ${STAGEDIR}${PREFIX}/bin/goldnode
${INSTALL_PROGRAM} ${WRKSRC}/bin/rddtlnx ${STAGEDIR}${PREFIX}/bin/rddt
${INSTALL_MAN} ${WRKSRC}/docs/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in charset colorset config template
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/$i
${FIND} ${WRKSRC}/cfgs/$i -maxdepth 1 -type f |\
${XARGS} -n 1 -J @ ${INSTALL_DATA} @ ${STAGEDIR}${EXAMPLESDIR}/$i
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manuals/gold_ref.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manuals/gold_usr.txt ${STAGEDIR}${DOCSDIR} .for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/$i ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
##################################
Test
make makesum (pray to god)
Remove old patches:
rm /usr/ports/news/golded+/files/patch-*
make clean
make stage
make stage-qa
make package
make clean && make stage && make stage-qa && make package
I haven't arrived here yet :(
It takes a while to compile on my computer
portlint (pray to god again)
make install
pkg info golded-plus
make deinstall
Change USER, only for test:
chown -R USER /usr/ports/news/golded+
make package (as USER)
##################################
Patch: Manual oficial de FreeBSD
Delete work directory y package:
make clean
rm -rf work/
Add files and check diff:
cd /usr/ports
git add news/golded+/
git diff --staged
Commit and generated patch:
git commit -m "Add news/golded+ port" --author="Your name <your@mail>"
git format-patch origin/main
##################################
It's still compiling
8 warnings generated.
building gwinpckf.o
2 warnings generated.
building gwinpcks.o
In file included from gwinpcks.cpp:34:
In file included from ../../goldlib/gcui/gkbdcode.h:57: ../../goldlib/gall/gdefs.h:145:13: warning: keyword is hidden by macro definition [-Wkeyword-macro]
145 | #define true 1
| ^
../../goldlib/gall/gdefs.h:146:13: warning: keyword is hidden by macro definition [-Wkeyword-macro]
146 | #define false 0
| ^
In file included from gwinpckf.cpp:35:
In file included from ../../goldlib/gall/gmemdbg.h:35: ../../goldlib/gall/gdefs.h:145:13: warning: keyword is hidden by macro definition [-Wkeyword-macro]
145 | #define true 1
| ^
../../goldlib/gall/gdefs.h:146:13: warning: keyword is hidden by macro definition [-Wkeyword-macro]
146 | #define false 0
| ^
... Checksum failed. Please delete universe and reboot.
--- CrashEdit 0.5.8 Linux
* Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)