FREEBSD creating new port

Posted by su55 on Server Fault See other posts from Server Fault or by su55
Published on 2010-03-29T04:38:34Z Indexed on 2010/03/29 4:43 UTC
Read the original article Hit count: 319

Filed under:
|

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?

© Server Fault or respective owner

Related posts about freebsd

Related posts about ports