• Making pkgs

    From Tanausu M.@86:534/20.1 to All on Mon Jun 15 13:22:17 2026
    Hello All!

    I'd like to create my own pkg files. I've been using bsd for years, but I've never bothered to learn how. Until now, I haven't needed to create them for my own software. But I find it slower to create the scripts than to create a package to install everything. I haven't found any good tutorials, not even the older ones.


    ... A computer once beat me at chess, but it was no match for me at kickboxing. --- CrashEdit 0.5.8 Linux
    * Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)
  • From Javier Sturman@86:700/10 to Tanausu M. on Mon Jun 15 10:42:36 2026

    Hello Tanausu!

    15 Jun 26 13:22, you wrote to all:

    Hello All!

    I'd like to create my own pkg files. I've been using bsd for years,
    but I've never bothered to learn how. Until now, I haven't needed to create them for my own software. But I find it slower to create the scripts than to create a package to install everything. I haven't
    found any good tutorials, not even the older ones.

    Have you read the FreeBSD's Ports Development handbook?

    https://docs.freebsd.org/en/books/porters-handbook/new-port/


    ... A computer once beat me at chess, but it was no match for me at kickboxing.
    --- CrashEdit 0.5.8 Linux
    * Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)

    Javier


    --- GoldED+/BSD 1.1.5-b20170303-b20170303 + HPT 1.9.0 + Binkd 1.1a-115
    * Origin: Simply a node in a jail (86:700/10)
  • From Tanausu M.@86:534/20.1 to Javier Sturman on Mon Jun 15 14:09:07 2026
    Hello Javier!

    15 Jun 26 15:08, you wrote to me:


    Hello Tanausu!

    15 Jun 26 13:22, you wrote to all:

    Hello All!

    I'd like to create my own pkg files. I've been using bsd for years,
    but I've never bothered to learn how. Until now, I haven't needed to
    create them for my own software. But I find it slower to create the
    scripts than to create a package to install everything. I haven't
    found any good tutorials, not even the older ones.

    Have you read the FreeBSD's Ports Development handbook?

    https://docs.freebsd.org/en/books/porters-handbook/new-port/


    Hi. I've searched so many websites that I'd forgotten to check the freebsd handbook, thanks. I'll look at it carefully.



    ... Change is inevitable, except from a vending machine.
    --- CrashEdit 0.5.8 Linux
    * Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)
  • From Sean Dennis@86:100/1 to Tanausu M. on Mon Jun 15 13:10:53 2026
    Tanausu M. wrote to Javier Sturman <=-

    Hi. I've searched so many websites that I'd forgotten to check the
    freebsd handbook, thanks. I'll look at it carefully.

    Their discussion forums are also very helpful.

    I'll be setting up a Dell Optiplex 390 box here with FreeBSD for MBSE development so if I run into anything, I'll pass it on.

    One of my eventual goals is to move my BBS from Slackware Linux to FreeBSD. I'll lose the DOS doors but it seems few callers use them anyway.

    -- Sean

    ... Programming Department: mistakes made while you wait.

    --- MultiMail/Win
    * Origin: Outpost BBS * Johnson City, TN (86:100/1)
  • From Tanausu M.@86:534/20.1 to Sean Dennis on Mon Jun 15 19:30:47 2026
    Hello Sean!

    15 Jun 26 20:14, you wrote to me:

    Tanausu M. wrote to Javier Sturman <=-

    Hi. I've searched so many websites that I'd forgotten to check the
    freebsd handbook, thanks. I'll look at it carefully.

    Their discussion forums are also very helpful.

    I'll be setting up a Dell Optiplex 390 box here with FreeBSD for MBSE development so if I run into anything, I'll pass it on.

    One of my eventual goals is to move my BBS from Slackware Linux to FreeBSD.
    I'll lose the DOS doors but it seems few callers use them anyway.

    If it's easier for you to maintain. I usually check it, or if I receive forum updates by email.

    I finally managed to do it calmly; it's nothing out of the ordinary, considering I'd never touched it before...

    And for the man pages, here's a very good site:

    https://roperzh.github.io/grapse/

    I even have the patches now, so it's much easier.

    # pkg info crashmail
    crashmail-1.7
    Name : crashmail
    Version : 1.7
    Installed on : Mon Jun 15 20:25:11 2026 WEST
    Origin : mail/crashmail
    Architecture : FreeBSD:15:amd64
    Prefix : /usr/local
    Categories : mail
    Licenses : GPLv2
    Maintainer : ervras@aim.com
    WWW : https://github.com/skbn/crashmail/
    Comment : Fidonet tosser with JAM messagebase support and FTN editor Shared Libs required:
    libc.so.7
    libncursesw.so.9
    libtinfow.so.9
    Annotations :
    FreeBSD_version: 1500068
    Flat size : 778KiB
    Description :
    CrashMail II is a Fidonet tosser with JAM messagebase support.
    It can process FTN packets, maintain message areas, and handle
    message routing for Fidonet networks.

    Features ASO (Amiga Style Outbound) mode for compatibility with
    classic Amiga FidoNet mailers. To enable ASO mode, add "ASO" to
    the Flags section in crashmail.conf. Includes sign extension fixes
    in JAMLIB for cross-platform compatibility.

    Includes CrashEdit, a full-featured FTN message editor with area
    management, message reader, ANSI art viewer, and file request
    capabilities.


    # pkg info tinyedit
    tinyedit-1.0.6
    Name : tinyedit
    Version : 1.0.6
    Installed on : Mon Jun 15 20:23:57 2026 WEST
    Origin : editors/tinyedit
    Architecture : FreeBSD:15:amd64
    Prefix : /usr/local
    Categories : editors
    Licenses : GPLv2
    Maintainer : ervras@aim.com
    WWW : https://github.com/skbn/tinyedit/
    Comment : Lightweight text editor with charset conversion
    Shared Libs required:
    libc.so.7
    libncursesw.so.9
    libtinfow.so.9
    Annotations :
    FreeBSD_version: 1500068
    Flat size : 159KiB
    Description :
    Is a lightweight text editor for Unix-like systems with full UTF-8 support, multiple charset conversion, configurable colors, undo/redo, search, and clipboard support.


    ... 640K ought to be enough for anybody.
    --- CrashEdit 0.5.8 Linux
    * Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)
  • From Javier Sturman@86:700/10 to Tanausu M. on Mon Jun 15 21:01:02 2026

    Hello Tanausu!

    15 Jun 26 19:30, you wrote to Sean Dennis:

    Their discussion forums are also very helpful.

    I'll be setting up a Dell Optiplex 390 box here with FreeBSD for
    MBSE development so if I run into anything, I'll pass it on.

    One of my eventual goals is to move my BBS from Slackware Linux
    to FreeBSD. I'll lose the DOS doors but it seems few callers use
    them anyway.

    If it's easier for you to maintain. I usually check it, or if I
    receive forum updates by email.

    I finally managed to do it calmly; it's nothing out of the ordinary, considering I'd never touched it before...

    I tried to port the latest Golded version (from @fidonet/golded) but I get way too many errors trying to build the proper Makefile. Didn't want flood the forum with my lack of development skills.


    Javier


    --- GoldED+/BSD 1.1.5-b20170303-b20170303 + HPT 1.9.0 + Binkd 1.1a-115
    * Origin: Simply a node in a jail (86:700/10)
  • From Tanausu M.@86:534/20.1 to Javier Sturman on Tue Jun 16 00:32:56 2026
    Hello Javier!

    16 Jun 26 01:28, you wrote to me:


    Hello Tanausu!

    15 Jun 26 19:30, you wrote to Sean Dennis:

    Their discussion forums are also very helpful.

    I'll be setting up a Dell Optiplex 390 box here with FreeBSD for
    MBSE development so if I run into anything, I'll pass it on.

    One of my eventual goals is to move my BBS from Slackware Linux
    to FreeBSD. I'll lose the DOS doors but it seems few callers use
    them anyway.

    If it's easier for you to maintain. I usually check it, or if I
    receive forum updates by email.

    I finally managed to do it calmly; it's nothing out of the ordinary,
    considering I'd never touched it before...

    I tried to port the latest Golded version (from @fidonet/golded) but I get way too many errors trying to build the proper Makefile. Didn't want flood the forum with my lack of development skills.


    Javier


    I'll take a closer look tomorrow. There's a pre-made Makefile in /usr/ports/news/golded+ with the sed commands to install mygolded.

    I compiled it myself for BSD, but I never bothered to learn how to create these packages. The website manual is too extensive...

    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


    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.

    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)
  • From Javier Sturman@86:700/10 to Tanausu M. on Mon Jun 15 22:37:46 2026

    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


    --- GoldED+/BSD 1.1.5-b20170303-b20170303 + HPT 1.9.0 + Binkd 1.1a-115
    * Origin: Simply a node in a jail (86:700/10)
  • From Tanausu M.@86:534/20.1 to Javier Sturman on Tue Jun 16 02:02:23 2026
    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)
  • From Tanausu M.@86:534/20.1 to Javier Sturman on Tue Jun 16 03:07:26 2026
    Hello Javier!

    16 Jun 26 03:58, 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


    I have it working now.

    https://citlmbbs.synchro.net/img/goldedbsd.png

    I have the patch here, but I haven't been registered on Bugzilla and I don't know if it's delivered all at once.

    https://citlmbbs.synchro.net/img/0001-Update-news-golded-to-1.1.5.a20260425.patch


    ##################################
    Next steps:
    ##################################

    git clone --depth=1 https://git.freebsd.org/ports.git

    git pull

    git reset --hard origin/main
    git merge --ff-only origin/main

    echo DEVELOPER=yes >> /etc/make.conf

    ##################################

    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
    SNAPDATE= 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

    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

    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 and 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 "Update news/golded+ to 1.1.5.a20260425" --author="Tanausú M. <ervras@aim.com>"
    git format-patch origin/main

    Patch generated in /usr/ports/0001-Update-news-golded-to-1.1.5.a20260425.patch ##################################


    ... The glass is neither half empty nor half full, it's twice as large as it needs to be.
    --- CrashEdit 0.5.8 Linux
    * Origin: Citrick BBS citlmbbs.synchro.net (86:534/20.1)