Date: Wed, 13 Aug 2014 19:03:05 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192642] New: update mail/mailagent to non-interactive Message-ID: <bug-192642-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192642 Bug ID: 192642 Summary: update mail/mailagent to non-interactive Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: ykasap@gmail.com I'm using mail/mailagent daily and don't want it to be expired from the port tree, so I tried to convert it to a non-interactive, regular port. During conversion, I also found a couple of staging bugs, so these were also patched. The entire patch is a bit large, so I put it at http://eron.info/mailagent-20140814.diff The patch includes: * Remove Build-time interactive FQDN and organization name input Remove scripts/pre-configure entirely. Patch agent/magnet.sh to put an empty string into $mydomain and $hiddennet. Now bin/mailagent doesn't contain FQDN information, so a user has to specify it in ~/.mailagent. Another strategies include 1) ask during post-install and 2) retrieve dynamically, but I didn't have enough time to implement them properly (with various error checking). There is no runtime option to specify the organization name. A filename containing the organization name can be specified, so I configured to use ${PREFIX}/etc/mailagent.orgname. Add pkg-install to create empty mailagent.orgname file. Add pkg-message to notify these changes. * Fix patch files issues Revert 358579 because these Makefiles don't exist before running ./Configure. Patch Makefile.SH instead. Also the argument of "test -d" should be patched, too. Some old patch files were regenerated because they didn't match with current codes exactly. * Fix pkg-plist issues Remove some nonexistent .bak entries which prevent "make package". Add mailagent.orgname cleanup code. * Skip running post-build sanity tests mailagent has built-in sanity tests, but they don't work correctly with root privilege, so skip it entirely. I'm not sure about umask restriction, so I didn't touch that. I only tested the updated port on 10-STABLE. At least I could "make package" and install the package using pkgng on another 10.0-RELEASE host. I noticed the expiration of this port two days ago and quickly made these changes without fully understanding ports and pkg internals, so someone who knows better would you please review the patch? -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192642-13>