NetBSD (pkgin): how to prevent automatic updates?

Hello!
The package built from "pkgsrc" with certain options, for example:

PKG_OPTIONS.exim="exim-auth-dovecot" 

How do I disable a specific package from automatic updates (with pkgin update)?

A quick Google search appears to yield some clues... ?

See also:

https://wiki.netbsd.org/pkgsrc/how_to_upgrade_packages/

I can't find exactly how to exclude a certain package from auto-updating from the links... I may have missed something.. I continue reading the documentation...

Hello,

I haven't used pkgsrc on NetBSD (indeed, I've not used NetBSD at all), but I have used pkgsrc on Illumos and Solaris a little. And as far as I know, there's no way to automatically exclude a package from updates. Unless you resort to stepping through all your installed packages and updating them manually (i.e. doing a pkgin install <package> for every package you want to update), there's no way to tell pkgin upgrade or pkgin full-upgrade to leave a particular package alone. I could be wrong, but that was my recollection, and I'm not seeing anything in the current docs that tells me otherwise at the moment. So it looks like you may be out of luck here, unless you do your updates the hard way.

I agree with you... Of course, you can find crutch solutions, such as, for example, iterating through all the packages allowed for updating in the loop and passing them as a parameter for pkgin update.. but this.. not very nice.. I think there should be some variable, for example in mk.conf, responsible for excluding package.
P.S. I like the NetBSD for its cross-platform and versatility of its pkgsrc, the development of zfs, xen, etc...

The last link mentions

pkg_rolling-replace -rsuvX packagename

Consult the man page

man pkg_rolling-replace

Thanks. But, this is not exactly what I would like to achieve..
This command performs updates (and excluding) from pkgsrc to all packages, including those installed from ready-made packages (using pkgin).
I wouldn't want to update all the packages from pkgsrc...