Date: Tue, 23 Oct 2018 12:34:53 -0600 From: Warner Losh <imp@bsdimp.com> To: Stefan Esser <se@freebsd.org> Cc: "Montgomery-Smith, Stephen" <stephen@missouri.edu>, "Julian H. Stacey" <jhs@berklix.com>, "Rodney W. Grimes" <freebsd-rwg@pdx.rh.cn85.dnsmgr.net>, ctm-users@freebsd.org, Poul-Henning Kamp <phk@phk.freebsd.dk>, FreeBSD Current <freebsd-current@freebsd.org>, Ed Maste <emaste@freebsd.org> Subject: Re: ctm(1) deprecation in the FreeBSD base system? Message-ID: <CANCZdfra4Kxov4xgPpqZ049n53s_ZE4bB_11YtxOwokOzn=BUQ@mail.gmail.com> In-Reply-To: <e1c91c60-0cf1-0f96-a3ae-1fbbb970748d@freebsd.org> References: <201810222132.w9MLVvxC050976@fire.js.berklix.net> <ca5b3908-cac1-2fa0-4d9d-d414308837b7@missouri.edu> <ab48f3cf-9d71-a92b-3f18-7f4946bff9f0@freebsd.org> <CANCZdfq6ojToMk%2BJPKhQz-52TPcqNbCPgNKKKt2b2V4roY%2BK0w@mail.gmail.com> <e1c91c60-0cf1-0f96-a3ae-1fbbb970748d@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 23, 2018, 12:18 PM Stefan Esser <se@freebsd.org> wrote: > Am 23.10.18 um 19:06 schrieb Warner Losh: > > > > > > On Tue, Oct 23, 2018 at 10:44 AM Stefan Esser <se@freebsd.org > > <mailto:se@freebsd.org>> wrote: > > > > Am 23.10.18 um 17:27 schrieb Montgomery-Smith, Stephen: > > > I have no problem turning ctm into a port. But I would appreciate > > > advice on whether there is a standard or easy process for > converting > > > software from the FreeBSD base to a port. If not, I can muddle my > way > > > through it. But give me some time (a few months) to get it done, > > > because the rest of my life is making heavy demands on me right > now. > > > > Hi Stephen, > > > > I could spend a few hours to perform the conversion to a port and to > > test it. I've a happy CTM user, many years ago, and I can understand > > that it still may be useful in special situations. > > > > The source archive will need to be hosted somewhere. Do you have a > > preference (e.g., on a FreeBSD server, or on Github, Gitlab, ...)? > > > > > > It's trivial to setup a new repository on github.com/freebsd/ctm > > <http://github.com/freebsd/ctm> for this purpose. With the right magic, > we > > could even retain the commit history. > > > I have a complete port (in the sense that it builds, installs, packages), > but there are a few details, that should be fixed on that occasion: > > 1) The man-pages install in man1 for binaries in sbin (--> change to man8) > 2) The Makefiles use LIBADD (--> change to use LDADD) > 3) The README file contains a reference to CVSUP (--> clean up) > > I do not have write access to freebsd on Github, and I'd appreciate if it > was possible to move the files from src/usr.sbin/ctm there (with history > would of course be preferable, but I'm not sure that it is of much use). > I can do this. We have many ports that are managed via github. What is your github id? Warner I could then push my local changes (required to make the port build) to > the Github repo (or add a few small patch files to the port). > > The port Makefile that I have prepared is attached below for reference. > > Regards, STefan > > --------------------------------------------------------------------- > # $FreeBSD$ > > > > > PORTNAME= ctm > PORTVERSION= 2.0 > CATEGORIES= ports-mgmt > > MAINTAINER= se@FreeBSD.org > COMMENT= Create, receive, and apply FreeBSD source updates per mail > > LICENSE= Beerware > LICENSE_NAME= Beerware > LICENSE_TEXT= "THE BEER-WARE LICENSE" (Revision 42): \ > <phk@FreeBSD.org> wrote this file. As long as you retain > this > notice you \ > can do whatever you want with this stuff. If we meet some > day, > and you think \ > this stuff is worth it, you can buy me a beer in return. > Poul-Henning Kamp > LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept > > USES= tar:txz > > #USE_GITHUB= yes > > > > #GH_ACCOUNT= freebsd > > > > > do-install: > .for f in ctm ctm_dequeue ctm_rmail ctm_smail > ${INSTALL_PROGRAM} ${WRKSRC}/${f}/${f} \ > ${STAGEDIR}${PREFIX}/sbin > .endfor > .for f in ctm ctm_rmail > ${INSTALL_MAN} ${WRKSRC}/${f}/${f}.1 \ > ${STAGEDIR}${MAN1PREFIX}/man/man1 # should be man8 > > > > .endfor > .for f in ctm_dequeue ctm_smail > ${INSTALL_MAN} ${WRKSRC}/ctm_rmail/ctm_rmail.1 \ > ${STAGEDIR}${MAN1PREFIX}/man/man1/${f}.1 # should > be > man8 > > > .endfor > > .include <bsd.port.mk> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfra4Kxov4xgPpqZ049n53s_ZE4bB_11YtxOwokOzn=BUQ>