Commit Diff
Diff:
1c99e948ee257055afaaed21158df63bbae74e33
a8b95d0cfecd3a6ab620d3fa1d1f4fac76b0ba35
Commit:
a8b95d0cfecd3a6ab620d3fa1d1f4fac76b0ba35
Tree:
4151a3a9cf0d0ad2754d7558fb3788c81eb13641
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sat Feb 25 03:12:55 2023 UTC
Message:
Remove makefile and replace with install
blob - 2ef14a3342a3b4a4231a1384b1a147740d16e291 (mode 644)
blob + /dev/null
--- makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-USERNAME="botnow"
-HOMEDIR="/home/botnow"
-HTDOCS="/var/www/htdocs/botnow"
-DATABASE="/var/www/botnow/"
-ZONES="/var/nsd/zones/master/"
-ZNCUSER="znc"
-ZNCDIR="/home/znc/home/znc/"
-HTTPDCONF="/etc/httpd.conf"
-ACMECONF="/etc/acme-client.conf"
-
-#botnow: figlet php sqlite
-botnow:
- useradd -m -g =uid -c ${USERNAME} -d ${HOMEDIR} -s /bin/ksh ${USERNAME}
- chmod go-rx ${HOMEDIR}
- mkdir ${DATABASE}
- chmod o-rx ${DATABASE}
- touch ${DATABASE}/www
- chown -R www:${USERNAME} ${DATABASE}
- chmod -R ug+rw ${DATABASE}
- mkdir ${HTDOCS}
- cp words ${HTDOCS}/
- cp register.php ${HTDOCS}/
- chown -R www:daemon ${HTDOCS}
- chmod o-rwx ${HTDOCS}
- usermod -G daemon ${USERNAME}
- usermod -G wheel ${USERNAME}
- chown -R _nsd:daemon ${ZONES}
- chmod ug+rwx ${ZONES}
- chmod ug+rw ${ZONES}/*
- chmod g+rw ${HTTPDCONF} ${ACMECONF}
- echo "permit nopass ${USERNAME} as _nsd cmd nsd-control" >> /etc/doas.conf
- cp captcha.png register.php ${HTDOCS}/
- cp LICENSE README botnow.pl botnow.conf.example BNC.pm DNS.pm Mail.pm SQLite.pm Shell.pm table.sql Hash.pm Help.pm makefile networks captcha.png register.php words ${HOMEDIR}/
- chown -R ${USERNAME}:${USERNAME} ${HOMEDIR}
- chmod u+x ${HOMEDIR}/botnow.pl
- chown -R ${ZNCUSER}:daemon ${ZNCDIR}
- chmod -R ug+r ${ZNCDIR}
- find ${ZNCDIR} -type d -exec chmod ug+rx {} +
- echo "Installation complete. To run botnow, type $ ./botnow.pl"
-figlet:
- pkg_add figlet-2.2.5
-
-php:
- pkg_add php-8.0.8
- pkg_add php-sqlite
-
-sqlite:
- pkg_add p5-DBI
- pkg_add p5-DBD-SQLite
- pkg_add sqlite3
- pkg_add p5-Class-DBI-SQLite
-
-blowfish:
- cc -o blowfish.o blowfish.c
- cp blowfish.o ${HOMEDIR}/
IRCNow