I am installing qmail and I want to use the qmail-scanner, but I need perl with suid. What's the easiest way to do this? To my knowledge, perl currently doesn't have this enabled in Arch.
If I understand what you're saying, you shouldn't have to repackage PERL, you just need to set the SUID bit on the binary with
chmod 4755 /usr/bin/perl
resulting in a perl binary with the following perms: -rwsr-xr-x
Readable and executable by all as root.
Here's the writeup from qmailrocks.org regarding perl and setuid...
How you go about configuring and installing qmail-scanner from this point on depends on how you server's installation of Perl is configured. For the purposes of this installation, there are 2 Perl setups.
1. Perl is configured to allow for setuid functions.
2. Perl is not configured for setuid functionality and, in fact, does not permit it.
I've tried both and they both fail, saying that I don't have setuid enabled.