FREEBSD creating new port
- by su55
Hi, I have a script here that I want to create as a port in freebsd and then make it as package so that I can install on some machines. script is below.
!/usr/local/bin/bash
if [ ! -f "/suid.old" ]
then
find / -perm -4000 -o -perm -2000 -ls /suid.old
else
find / -perm -4000 -o -perm -2000 -ls /suid.new
diff suid.old suid.new newchanges
fi
exit 0
if [ -s "/newchanges" ]
then
mail -s "changes has occured" [email protected]
else
mail -s "No changes has occured" [email protected] /newchanges
fi
How can I accomplish this?