Hi guys,
I am trying to fully port mysqldump-secure over to FreeBSD.
It is already at the state that the script itself is 100% fully working (POSIX shell without any bashism: #!/bin/sh).
I have one request as well as one error and one problem.
1. The request
I would like to get this as a port so I can use it via pkg or preferable via /usr/ports with make install.
However I have absolutely no idea about creating ports.
Maybe someone here wants to take over the port maintenance for that packet.
If so, either write it here or contact me with PM.
Full support will be given on any problems as well as full credit for that.
2. The problem
The problem I have is with tput and colored terminal output.
It works with OSX and Linux so far, but under FreeBSD I am not getting any colors.
The command I am using is as follows:
Any idea what is wrong here?
3. The error
Second, the error is that the Makefile is not working as it does under Linux or OSX.
I am getting the following errors:
Unfortunately I have no idea, why this is not working under FreeBSD as it works flawlessly under OSX (and as far as I know they share most binaries...or?)
The Makefile itself can be found here:
https://github.com/cytopia/mysqldump-secure/blob/master/Makefile
Thanks for the time
I am trying to fully port mysqldump-secure over to FreeBSD.
It is already at the state that the script itself is 100% fully working (POSIX shell without any bashism: #!/bin/sh).
I have one request as well as one error and one problem.
1. The request
I would like to get this as a port so I can use it via pkg or preferable via /usr/ports with make install.
However I have absolutely no idea about creating ports.
Maybe someone here wants to take over the port maintenance for that packet.
If so, either write it here or contact me with PM.
Full support will be given on any problems as well as full credit for that.
2. The problem
The problem I have is with tput and colored terminal output.
It works with OSX and Linux so far, but under FreeBSD I am not getting any colors.
The command I am using is as follows:
Code:
# If having a tty (console) use colors
if [ -t 1 ]; then
CLR_OK="$(tput setf 2 2>/dev/null || tput setaf 2 2>/dev/null)"
CLR_FATAL="$(tput setf 4 2>/dev/null || tput setaf 1 2>/dev/null)"
CLR_ERROR="$(tput setf 4 2>/dev/null || tput setaf 1 2>/dev/null)"
CLR_WARNING="$(tput setf 6 2>/dev/null || tput setaf 3 2>/dev/null)"
CLR_DEBUG="$(tput setf 0 2>/dev/null || tput setaf 248 2>/dev/null)"
CLR_TRACE="$(tput setf 0 2>/dev/null || tput setaf 242 2>/dev/null)"
CLR_RESET="$(tput sgr0 2>/dev/null)"
# Dump terminal (e.g.: via cron)
else
CLR_OK=""
CLR_FATAL=""
CLR_ERROR=""
CLR_WARNING=""
CLR_DEBUG=""
CLR_TRACE=""
CLR_RESET=""
fi
Any idea what is wrong here?
3. The error
Second, the error is that the Makefile is not working as it does under Linux or OSX.
I am getting the following errors:
Code:
make: "/root/repo/mysqldump-secure/Makefile" line 15: Unassociated shell command "ifneq ("$(wildcard configure.in)","")"
make: "/root/repo/mysqldump-secure/Makefile" line 16: Unassociated shell command "CONFIGURED = 1"
make: "/root/repo/mysqldump-secure/Makefile" line 17: Unassociated shell command "include configure.in"
make: "/root/repo/mysqldump-secure/Makefile" line 18: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 20: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 23: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 25: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 27: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 30: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 32: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 33: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 35: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 36: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 38: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 39: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 41: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 46: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 47: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 48: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 78: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 80: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 82: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 83: warning: duplicate script for target "ifeq" ignored
make: "/root/repo/mysqldump-secure/Makefile" line 79: warning: using previous script for "ifeq" defined here
make: "/root/repo/mysqldump-secure/Makefile" line 84: Need an operator
make: "/root/repo/mysqldump-secure/Makefile" line 125: Missing dependency operator
make: "/root/repo/mysqldump-secure/Makefile" line 126: warning: duplicate script for target "ifeq" ignored
make: "/root/repo/mysqldump-secure/Makefile" line 79: warning: using previous script for "ifeq" defined here
make: "/root/repo/mysqldump-secure/Makefile" line 126: warning: duplicate script for target "(0,0)" ignored
make: "/root/repo/mysqldump-secure/Makefile" line 79: warning: using previous script for "(0,0)" defined here
make: "/root/repo/mysqldump-secure/Makefile" line 127: Need an operator
make: Fatal errors encountered -- cannot continue
make: stopped in /root/repo/mysqldump-secure
Unfortunately I have no idea, why this is not working under FreeBSD as it works flawlessly under OSX (and as far as I know they share most binaries...or?)
The Makefile itself can be found here:
https://github.com/cytopia/mysqldump-secure/blob/master/Makefile
Thanks for the time