| Summary: | Can't create package from security/amavisd-new with AMAVIS_NOMILTER | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Victor Prylipko <vic> |
| Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Sorry, AMAVIS_NOMILTER is not a knob tunable by the installer: this variable is set or not according to the presence of the library libmilter.so. To do what you want, the port should be updated to handle a knob WITH_NOMILTER or WITHOUT_NOMILTER. Please contact the maintainer, and ask him if he agrees with this update. |
I'm using portupgrade to install ports and create packages. In /usr/local/etc/pkgtools.conf I added: MAKE_ARGS = { 'security/amavisd-new*' => [ 'AMAVIS_NOMILTER=1', ], } to install amavisd-new without milter support. When trying to install port and create package I received error while creating package: .. Creating gzip'd tar ball in '/usr/ports/packages/All/amavisd-new-20030616.p9.tgz tar: 1etc/rc.d/amavis-milter.sh: Cannot stat: No such file or directory tar: 1sbin/amavis: Cannot stat: No such file or directory tar: 1sbin/amavis-milter: Cannot stat: No such file or directory tar: Error exit delayed from previous errors pkg_create: make_dist: tar command failed with code 512 *** Error code 1 Stop in /usr/ports/security/amavisd-new. .. Fix: I just deleted from /usr/ports/security/amavisd-new/pkg-plist three lines begining with %%AMAVIS_NOMILTER%% But it's only dirty hack :-) How-To-Repeat: Add in /usr/local/etc/pkgtools.conf MAKE_ARGS = { 'security/amavisd-new*' => [ 'AMAVIS_NOMILTER=1', ], } run portinstall: portinstall -p amavisd-new