Creating custom ports versions.

Erich Eckner crux at eckner.net
Mon Nov 25 07:54:19 UTC 2019


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, 25 Nov 2019, KPECT wrote:

> Hi people.
> 
> Very often I use slightly modified ports just to achieve some additional or
> remove some extra options that the original port provides. I'd like to
> suggest to propose implementing a new ports function that would allow users
> to create a child port (for example in /usr/ports/custom) that has the same
> name as the parent, but which has some differences that the user needs.
> Every time the ports are updated if the version of the parent port is
> changed, this also affects the child ports, so you do not need to track them
> manually.
> Similar solution for FreeBSD can be found here:https://www.amoradi.org/2019/11/12/maintaining-port-modifications-in-freebs
> d.html
> I belieive that this is very demanded function.
> Best regards,
> Sergey.


Hi,

I would definitely use that feature. My approach so far was:

put patches into /usr/patches/$repository/$port/

and apply them during `ports -u`, resigning the ports using a private key.

The feature itself is implemented as a patch to ports:

https://git.eckner.net/Erich/crux-patches/tree/core/ports

What I like about this approach (and what I would like to see in an 
official implementation, too), is, that you do not need to modify anything 
in order to keep your packages up-to-date - as long as your patches 
still cleanly apply.

regards,
Erich


-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl3biKwACgkQCu7JB1Xa
e1pCFxAAqpF00lXOBTZJwoJVGVcA4YCmNkZ5EiothcIJDxzHgnlavdEKLCz/o/qt
pCYb+LZVegGet9Z/LqekSX4FvVsO1YvDuO7zyIUMczrY0tJBLOeQlqQWOwHqQ404
Q3gyx8dRsW6ZlwXxD8D3lpQ6nMTNRdxSAdzCq2IC3N9eIOiy4Snot5iTuev+Hm5M
NkLXlyYkAZRiLDKlL+ym6UGG3NoE1UoHgk+OGg9wnugegfWXPJzni9Wa+sSdTt5H
boGfoMtCc7WzhaU+oREQjhyq/h3g2J1Hzb47l5L9vHtieD8/sJWWMYNtPxk2PYlh
okwUPBkzNAtxMkxjnc0c7G1enkAGXhO8m/1OtAvuw0MPzTpDASROWraEwnVr03Hj
ar5VigWwZQCb01HbVqOuBoCppAPEqvtCB/UGkxLFvlM8INR4HwWjSG3HWgM3Benh
6t71YiPn02Q3ATlatUBNasiVpxVqfDgxA7er1RaFOLyyt3GCnaijNvguQmCx1GYN
mkHSBXa7Sx8VTJ5+Lhqk13QMZnjcNUzZ12M8XmJKCPVMwbwnuF92vF8k5R/9Af8o
U49OMmStZBQ5qvpnM4XbA54o2DekpVIrt9WQSwcgpdR+WYfS1IgZkuFuJIZZUiwZ
UDeEKI39jdOc2C7muo7oZGT8mhNLvh0pV/nTRLHsNcDo02E8C8Y=
=SwAo
-----END PGP SIGNATURE-----


More information about the CRUX mailing list