make clean make make install DESTDIR=$PKG LIBSUFFIX=$LIBDIRSUFFIX mkdir $PKG/usr/bin cp $CWD/pkexec-netpkg $PKG/usr/bin/netpkg chmod 755 $PKG/usr/bin/netpkg # Policykit mkdir -p $PKG/usr/share/polkit-1/actions cat << EOS > $PKG/usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.netpkg.policy Run $NAME Authentication is required to run netpkg as Root no no yes /usr/sbin/netpkg TRUE EOS