Porting help requested

Boris Samorodov bsam at passap.ru
Sat Jan 12 13:40:28 UTC 2013

08.01.2013 23:31, Hokan пишет:
> Hello Porters,
> I'm working on updating the port sysutils/modules and am unsure how
> to do something.
> The port (tarfile attached) installs into ${PREFIX}/Modules/${PORTVERSION}
> and creates a link ${PREFIX}/Modules/default that points to that install.
> The point is to permit several installed versions of the software with
> the link controlling which is used.
> I want to make this updated port not conflict with any older version that
> may be installed.
> Here's my problems:
> If an older version is installed my port fails because it can't create the
> directory ${PREFIX}/Modules nor the link ${PREFIX}/Modules/default because
> they already exist.  I don't know how to deal with this.
> When deinstalling the port I want to remove ${PREFIX}/Modules/default if it's
> pointing to the version I'm deinstalling, but leave it alone otherwise.
> Please give me advice on how to proceed.

You should restructure your port(s).

1. The current port should be moved to sysutils/modules31.
2. Create a new port for the new version sysutils/modules32.
3. Create a new port sysutils/modules (a so called master
port) to select which versions to install and which one
should be the default.

Said that I'm not sure if it make any sence for this particular
port. What's the reason to have multiple installed versions?
It seems to be a handy tool which should just be updated to
a new version...

Anyway you have a choice.

Good luck, HTH
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve

More information about the freebsd-ports mailing list