ports/65594: [New Port] net/verlihub (Verlihub Direct Connect protocol server software

Hurbold hurbold at yahoo.com
Fri Apr 16 02:20:01 UTC 2004


>Number:         65594
>Category:       ports
>Synopsis:       [New Port] net/verlihub (Verlihub Direct Connect protocol server software
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 15 19:20:00 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Bill Cadwallader <hurbold at yahoo.com>
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD metal-gods.dyndns.org 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Tue Mar 30 19:47:35 EST 2004 root at metal-gods.dyndns.org:/usr/src/sys/i386/compile/ANUBIS i386


>Description:
	
	Supercedes:		ports/65240
 
	Verlihub is a Direct Connect Protocol Server, known for its amazingly high user limit and low CPU/Bandwidth requirements.

	- Uses a mysql backend
	- Remarkable logging capability
	- Versatile OP commands

	http://verlihub.sourceforge.net

>How-To-Repeat:

>Fix:


--- verlihub begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	verlihub
#	verlihub/files
#	verlihub/files/help
#	verlihub/files/help_usr
#	verlihub/files/verlihub
#	verlihub/files/params
#	verlihub/files/features
#	verlihub/files/patch-aa
#	verlihub/files/patch-ab
#	verlihub/files/patch-ac
#	verlihub/files/motd
#	verlihub/files/patch-ad
#	verlihub/pkg-descr
#	verlihub/distinfo
#	verlihub/pkg-message
#	verlihub/pkg-plist
#	verlihub/Makefile
#
echo c - verlihub
mkdir -p verlihub > /dev/null 2>&1
echo c - verlihub/files
mkdir -p verlihub/files > /dev/null 2>&1
echo x - verlihub/files/help
sed 's/^X//' >verlihub/files/help << 'END-of-verlihub/files/help'
Xcommand alias class args help 
X!ban !bi 3 <ip> [<reason>] Permanent ban of ip with the reason. User with given ip has been recently kicked, nick is banned too. 
X!unban !ub 3 <ip> Unban the ip. If a nick was banned with the same ip, it is unbanned too, smae for all other types of bans 
X!getip !gi 3 <nick> Print user's ip address 
X!gethost !gh 3 <nick> Print user's hostname if available. This works only if dns_lookup = 1. 
X!getinfo !gi 3 <nick> Print user's ip, hostname, adn other available information 
X!nickban !bn 3 <nick> permanently adds given nick ONLY to nickbanlist 
X!nickunban !un 3 <nick> removes given nick ONLY from nickbanlist 
X!tempban !tb 3 <ip> <time> [<reason>] temporary ban on ip (and possibly nick), if user has been kicked recently, his nick is banned, and the kick reason is used for reason 
X!ipban !bi 3 <ip> [<reason>] perm ban the ipaddress, but not nick, even if the kick is found 
X!ipunban !ui 3 <ip> remove the ip from banlist, anyway, if there is a nick banned with same ip, nick stays banned 
X!ipbanlist !bl 3 NULL print the banlist of ip's 
X!kick !ki 3 <nick> <reason> Kick the user from command line, the _ban_ think doesn't work here 
X!ops !oc 3 <message> send the messahe to all online operators to pm from hub_security, replies go to sender's pm from hub_security 
X!regs NULL 3 <message> send the <message> to all registered users 
X!regpasswd !rp 3 <nick> allow registered nick to change his password (he has to use command +passwd <pass>) 
X!regdisable !r0 3 <nick> disable registered user, that is praticaly unregistering him, but he can be enabled later 
X!regenable !r1 3 <nick> enable user's registration, when he wad previously disabled with !regdisable 
X!help !? 3 NULL gives a help on all available commands 
X!quit NULL 10 NULL Stop the hub 
X!set != 5 <variable> <value> Set the given variable to the new <value>, settings are not saved to config 
X!regpurge NULL 5 <nick> not implemented 
X!getconfig !gc 5 NULL Prints all the variables, that can be configures in the config file and their current values 
X!broadcast !bc 4 <message> send the message to all user's pms, replied are sent back to you into pm from hub_security 
X!regdeluser !rd 4 <nick> not implemented 
X!regnewuser !rn 4 <nick> [<class>] register new user with given class (default is 1), Allowed classes are 1-5, you can't give class higher then your's -2 
X!regclass !rc 4 <nick> [<class>] Setup the class for registered user 
X!hostban !bh 4 <host> <reason> add the host permanently to banlist 
X!hostunban !uh 4 <host> remove host from hostbanlist 
X!drop !dr 4 <nick> disconnect user from hub, kicktempban applies here 
X
END-of-verlihub/files/help
echo x - verlihub/files/help_usr
sed 's/^X//' >verlihub/files/help_usr << 'END-of-verlihub/files/help_usr'
XThis file represent data that is returned when a user ask for +help
X
XThe name of the file indicates who the data is sent to.
X
XNote that files of a level lower than the user's level are sent to the user.
X
Xi.e. data from all help_* files is sent to Master when he types +help.
END-of-verlihub/files/help_usr
echo x - verlihub/files/verlihub
sed 's/^X//' >verlihub/files/verlihub << 'END-of-verlihub/files/verlihub'
XConfiguration
XAfter 8.0 there is only one configuration file and several text files. 
XAll these files have to be placed in ./.verlihub directory, which itself must be in the working directory of verlihub. 
Xconfig
Xthere are keywords and their values in a form key_word = value #this is a comment that may be there, note the spaces around the = sign 
XNote: please don't be strict with exact definitions concerning minima or maxima if they are strict or not (difference between greater and greater or equal). 
Xhub_name - string - Verlihub v.0.x.x beta - name of the hub
Xmax_users - int - 3500 - limit of users to allow another user in the hub
Xmax_extra_ops - int - 50 - addition to the limit to allow an operator
Xmax_extra_admins - int - 1 - addition to limit + extra_ops to allow admin
Xmin_share - unsigned long - 1024 - minmimum share in MegaBytes
Xmin_share_reg - unsigned long - 0 - minimum share for vip registered users and higher
Xmin_share_ops - unsigned long - 0 - min share for ops and higher
Xmax_share - unsigned long - 1536000 - maximum share in MegaBytes
Xtban_kick - int - 300 - time seconds when user is not allowed in the hub after kick (not tempban, cannot be unbanned)
Xmin_nick - int - 3 - minimum length of allowed nickname
Xmax_nick - int - 32 - longest allowed nickname
Xnick_chars - onewordstring - abcd...zA..Z+-_=()[] - complete list of only allowed characters in nickname (no intervals)
X
Xdb_host - hostname - localhost - mysql database hostname
Xdb_user - string - verlihub - mysql database username
Xdb_pass - string - - fill it please, it's a passwrd for db_user at db_host for mysql
Xdb_data - string - verlihub - database name to use for reglist and banlist etc..
X
Xmotd
XMOTD file, all it's contents is sent to every user after successful log-in to hub Note: use DOS file encoding (CRLF) because hub doesn't translate it, and windows users would see all motd in one line.. 
Xrules
XWhenever user types +rules command in main chat, the contents of this file is sent to him. Same note as about MOTD. 
Xhelp_usr, help_reg, help_vip, help_op, help_cheef, help_master, help_admin 
XAll these files should contain help, reaction on +help or !help commands in main chat.
XEvery one should contain only a specific help for every class of users. When user types +help
Xhis class help and all lower helps are sent to him.
X
Xfaq
XThis is sent on +faq command, put in frequently asked questions.
X
Xother files
XIn future, I mean to add configuration, that would allow you define your own 
Xcommands and files to send to user on their writing.
X
X
X--------------------------------------------------------------------------------
XCreate MySQL database Be sure that MySQL at least 3.23 is installed.
Xrun mysql as a user that has rights, for example root
Xmysql -u root -p
XCREATE DATABASE verlihub;
XGRANT ALL PRIVILEGES ON verlihub.* TO verlihub at localhost IDENTIFIED BY 'the_password_you_choose';
X
XThen try to run verlihub (without ops or registered users), it will create the tables. 
XQuit verlihub.
X
XNow we create the Master user.
X
XConnect again to database
Xmysql -u verlihub -p -D verlihub
Xenter the password
X
XWith this command:
XINSERT INTO reglist (nick, class) VALUES ('Your_Admin_Nick',10);
X
Xquit mysql (CTRL+D)
XRun verlihub, connect to it with a client that has your_admin_nick and at first
Xsetup your admin password. by command +passwd Your_admin_password
X
Xthe you can reconnect and you will have admin rights.
X
X
X--------------------------------------------------------------------------------
X
X
XRunning VerliHub 
X
X
Xyou can run verlihub from any working directory you like ;o) suprisingly
Xbut in that directory you need to have a configuration subdirectory ./.verlihub
Xmake sure, that before running 'verlihub' or 'any/path/verlihub' there is 
X./.verlihub in current dir.
X
XVerlihub by default binds to ip 0.0.0.0 on port 4111 (not 411).
XAt the moment you can override the port, but not the ip (hope it works).
XTo change port, use the first argument e.g. 'verlihub 411'.
X
XVerlihub's output goes to console. You can redirect it to a file e.g.
X'verlihub 411 >log 2>err &'
X
XREGISTERING USERS AND OPS
X-------------------------
X
XThere are different classes of users. They differ with right on some commands
Xand some limitations.
X
XClasses:
X0 - normal user - any user that connects to hub
X1 - registered user - he must provide password on login, besides different ban method, he has no privileges
X2 - vip reg user - he has some extra privileges, like lower share limit, and maybe some more...
X3 - operator - even lower share limit, kick, ban, get ips, create/modify reg users of class 1, etc..
X4 - cheef - regusers class 1,2; some more..
X5 - admin - can create ops, !broadcast, change settings etc..
X10 - master - can do everything except creating another master ;o) 
X
XSo if you have enough right to register a user to a given class, do it by command
X!regnewuser nick [class] 
Xif class is not given 1 is used.
XThis will add user to a reglist database. His rights (except login with banned ip talk about this later)
Xare not applied until he sets up his password with +passwd command in main chat. Then he must reconnect.
X
XTo change class of registered user you will use !regclass nick new_class. This 
Xtakes effect after user's reconnect. You can't give higher class then you are allowed to ;).
X
XWhen user needs to change password you can user !regpasswd nick command.
XUser is then allowed and obliged to change his password with +passwd command.
X
XIf user lost his password, you can do the same. But attention, if it's realy the user.
XSome information about last good ip, and last bad ip are stored in database. The 
X!getinfo command will in future tell you this.
X
X!regdisable and !regenable are to temporarily enable or disable users account.
X!regpurge to delete it from database with all it's info. 
X
XHOW TO BAN
X----------
X1) The easiest way to ban someone is when you are kicking him.
XYou just add _BAN_ into the kick reason, and user is not only kicked, but 
Ximmediately permanently banned (ip and nick). You can use of course temporary ban
Xby adding _BAN_3d for example into the kick reason. the 3d is a time period of 
Xban validity. The ban is for ip and nick. and takes effect 3days.
X
XNote, that every kick has almost same effect like ban, deflaut tban_kick values 
Xis 300 seconds.
X
XTime units in temporary bans:
Xs - second
Xm - minute - 60 seconds
Xh - hour - 60 minutes
Xd or D - day - 24 hours
Xw or W - week - 7 days
XM - month - 4 weeks
XY - year - 12 moths (4*7*12 days 336)
X
Xso you make it _BAN_numberunit
Xe.g. ...kicked ..because: incomplete files _BAN_4d 
Xor ........ because: hob/slot ratio _BAN_2h 
Xetc...
X>br> After a kick like this you have to do nothing more to ban or unban user.
XNote: you need to put a space after the unit, or end of reason. Hub writes "Banned." if it worked.
X
X
X
X2) The classical way !ban !tempban:
XNormally you first kick the user, and read his ip, then you ban the ip with !ban command.
XWell this works too, but does slightly different thing.
X
XWhen you type !ban 1.1.1.1 or !tempban 1.1.1.1 3d , hub searches among history of 
Xyour kicks, if there was user with the same ip address, when found, hub takes the 
Xlast one and uses the nick and reason for banning ip and nick.
X
XIf nothing is found you are asked for more information, and nothing is done.
X
XIf you want to ban ip without having kicked a user, you have to provide the reason.
XUse command !ban 1.1.1.1 reason reason ...
XIn this special case, only the ip is banned, if you want to add a nickban, use 
X!nickban command.
X
X3) context menu...
Xnot implemented yet 
X
X*************************************
XHiding operators:
X-----------------
X* there are ways, to hide operators..
X* noone can be hidden for his superiors or same level ops
XWhat can be hidden?
X-------------------
X1/ presence in oplist
X2/ presence in NickList (not asured)
X3/ kicking messages to chat (cheefs and higher)
X
X
END-of-verlihub/files/verlihub
echo x - verlihub/files/params
sed 's/^X//' >verlihub/files/params << 'END-of-verlihub/files/params'
Xmax_extra_regs how many registered and vip users can get into hub when the given userlimit is exceeded 
Xmax_extra_ops number of operator over the max user limits currently applying 
Xmax_extra_admins this can be even very high 
Xmax_users the total max users for hub 
Xmax_users0 max usres in zone 0 - which is the rest of the world except those specified in cc_zone1..3 and ip_zone4 
Xmax_users1 user limit for CC_zone1 
Xmax_users2 user limit for CC_zone2 
Xmax_users3 user limit for CC_zone3 
Xmax_users4 user limit for IP_zone4 
Xmin_share min share in MegaBytes 
Xmin_share_reg min share for VIP users  
Xmin_share_ops min share for ops  
Xmax_share  
Xmax_share_reg  
Xtban_kick  
Xhub_name  
Xhub_desc  
Xhub_host  
Xhublist_host  
Xhublist_port  
Xmax_nick  
Xmin_nick  
Xnick_chars  
Xmax_chat_msg  
Xmax_chat_lines  
Xnick_prefix  
Xlisten_port  
Xextra_listen_ports  
Xlisten_ip  
Xtimer_conn_period  
Xtimer_serv_period  
Xmin_frequency  
Xnicklist_on_login  
Xdelayed_search  
Xdelayed_myinfo  
Xstep_delay  
Xbc_reply  
Xhub_security  
Xopchat_name  
Xlog_level  
Xcheck_ctm  
Xcheck_rctm  
Xmax_message_size  
Xdns_lookup  
Xhide_all_kicks  
Xoptimize_userlist  
Xhub_owner  
Xint_search  
Xul_portion  
Xmsg_banned  
Xmsg_hub_full  
Xmsg_nick_prefix  
Xmin_search_chars  
Xtag_max_slots_default  
Xtag_max_slots_28kbps  
Xtag_max_slots_33_6kbps  
Xtag_max_slots_56kbps  
Xtag_max_slots_modem  
Xtag_max_slots_isdn  
Xtag_max_slots_cable  
Xtag_max_slots_dsl  
Xtag_max_slots_satellite  
Xtag_max_slots_microwave  
Xtag_max_slots_wireless  
Xtag_max_slots_lant1  
Xtag_max_slots_lant3  
Xtag_min_slots_default  
Xtag_min_slots_28kbps  
Xtag_min_slots_33_6kbps  
Xtag_min_slots_56kbps  
Xtag_min_slots_modem  
Xtag_min_slots_isdn  
Xtag_min_slots_cable  
Xtag_min_slots_dsl  
Xtag_min_slots_satellite  
Xtag_min_slots_microwave  
Xtag_min_slots_wireless  
Xtag_min_slots_lant1  
Xtag_min_slots_lant3  
Xtag_min_ls_ratio_default  
Xtag_min_ls_ratio_28kbps  
Xtag_min_ls_ratio_33_6kbps  
Xtag_min_ls_ratio_56kbps  
Xtag_min_ls_ratio_modem  
Xtag_min_ls_ratio_isdn  
Xtag_min_ls_ratio_cable  
Xtag_min_ls_ratio_dsl  
Xtag_min_ls_ratio_satellite  
Xtag_min_ls_ratio_microwave  
Xtag_min_ls_ratio_wireless  
Xtag_min_ls_ratio_lant1  
Xtag_min_ls_ratio_lant3  
Xtag_min_limit_default  
Xtag_min_limit_28kbps  
Xtag_min_limit_33_6kbps  
Xtag_min_limit_56kbps  
Xtag_min_limit_modem  
Xtag_min_limit_isdn  
Xtag_min_limit_cable  
Xtag_min_limit_dsl  
Xtag_min_limit_satellite  
Xtag_min_limit_microwave  
Xtag_min_limit_wireless  
Xtag_min_limit_lant1  
Xtag_min_limit_lant3  
Xtag_max_hs_ratio  
Xtag_max_hubs  
Xcc_zone1  
Xcc_zone2  
Xcc_zone3  
Xip_zone4_min  
Xip_zone4_max  
Xshow_tags  
Xtag_allow_none  
Xsend_user_ip  
Xuse_reglist_cache  
Xredir_host0  
Xredir_host1  
Xredir_host2  
Xredir_host3  
Xredir_host4  
Xredir_host5  
Xredir_host6  
Xredir_host7  
Xredir_host8  
Xredir_host9  
X  
X
END-of-verlihub/files/params
echo x - verlihub/files/features
sed 's/^X//' >verlihub/files/features << 'END-of-verlihub/files/features'
XVerlihub's features
XLow CPU/RAM usage see the requirements 
XWWW interface there are several of them, you can make your own, allows you to manage settings, reg users, banlist and more.. 
XWindows GUI interface Even if you run hub on linux, you can connect to it's databse from windows 
XCountry zones and one IP zone for specifying different users limit for every zone 
XHub overfill and lag protection does not allow you going too far in user count, if cpu can't do more, it won't 
XQuick kick+ban add a special keyword into a kick reason, and here you are, you can ban /tmpban users with no more commands 
XDC++ tag parser with limiters max/min slots per connection type 
Xmax_hubs per connection type 
Xmin upload limiter per connection type 
Xmin per slot upload limiter for each conection type 
Xmax hubs / slot ratio 
Xoption - allow only users with tag 
Xoption - remove tags from users 
X 
XAdmin specified Trigger commands You can add as many as you wish commands sarting with + that print a defined file to user. 
X/proc/cpuinfo rules_en rules_whatever faq 
X
Xeven by crontab regularily generated files...
X
Xposisbility to modify the file contetns from a chat command 
X 
XPlugin Support a great potential fro new features.. comming soon  
XAnti freeze user system If user suddenly loses connection, he's freezed in the hub, but he is able reconnect.. 
XSpam limiters min chat delay 
Xmax chat length 
Xmax chat lines 
Xmin search delay 
Xno repetitive searches 
X... 
X 
XRegistered users Basic reg user (class 1) 
Xcrypted password for the nick 
Xaccess priority before nonregistered user 
Xnever hanging nick 
Xoptional kick and forcemove protection 
XVIP reg user (class 2) 
Xdifferent min share limit (min_share_reg) 
XBasic Operators (class 3) 
Xkick, ban, unban 
Xdifferent share limit 
Xhide op's DC tags 
Xoptionaly see other users' tags 
Xno tags verification 
Xpriority in entering hub 
Xno search, chat, and other limitations 
Xtemporary protection of users 
XCheef Operators (class 4) 
Xrights to create/modify registered users up to class 2 
Xautomaticly protected from kicks of regular ops (class 3) 
Xcreate temporary operators of calss 3, until their unconnection 
Xpermanent protection of users 
XAdmin (class 5) - Conrolls all the stuff 
XMaster (class 10) creates admins, absolute power ;) 
X 
XBan users directly from the kick by specifying the ban time 
Xallways specify a reason 
Xbanned user trying to ligin sees the reason 
XIP bans, Nick bans, host bans, IP rangebans, other even... 
Xkick+ban directly from the chat command 
Xunbans are recorded, and a reson must be given 
Xget a list of bans applying to a given nick or ip 
Xbanlist in stored in mysql, can be managed through the WWW interface 
X 
XOther 10 redirect addresses 
Xops enter full hub 
Xoperators hierarchy 
Xallowed characters for nicks 
Xoption - force nick prefix 
Xoption - force Country code ncik prefix 
Xmultiple listen ports 
Xbind to a given ip 
Xa realy basic hublist registering :-| TODO better one 
X 
X
END-of-verlihub/files/features
echo x - verlihub/files/patch-aa
sed 's/^X//' >verlihub/files/patch-aa << 'END-of-verlihub/files/patch-aa'
X--- scripts/install	Thu Feb 19 11:25:28 2004
X+++ scripts/install	Fri Apr  2 12:38:43 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X # settings
X MYSQL=mysql
END-of-verlihub/files/patch-aa
echo x - verlihub/files/patch-ab
sed 's/^X//' >verlihub/files/patch-ab << 'END-of-verlihub/files/patch-ab'
X--- scripts/regnick	Thu Feb 19 11:38:21 2004
X+++ scripts/regnick	Fri Apr  2 12:55:33 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X #bash ".verlihub/dbconfig"
X #echo $db_pass
END-of-verlihub/files/patch-ab
echo x - verlihub/files/patch-ac
sed 's/^X//' >verlihub/files/patch-ac << 'END-of-verlihub/files/patch-ac'
X--- scripts/runhub	Wed Mar 10 23:32:28 2004
X+++ scripts/runhub	Fri Apr  2 12:38:30 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X 
X # don't change these variables
X@@ -7,11 +7,11 @@
X [ -d ./.verlihub ] && confdir=./.verlihub
X [ "x$VERLIHUB_CFG" != "x" ] && confdir=$VERLIHUB_CFG
X 
X-needfiles="dbconfig motd faq rules help_admin help_master help_op help_usr help_reg help_reg"
X+needfiles="dbconfig motd faq rules help_admin help_master help_op help_usr help_reg"
X 
X # feel free to change these
X 
X-exepath="" # default location for the hub config directory
X+exepath="/usr/local/bin" # default location for the hub config directory
X pidfile=$confdir/pid
X logfile=$confdir/log
X errfile=$confdir/err
END-of-verlihub/files/patch-ac
echo x - verlihub/files/motd
sed 's/^X//' >verlihub/files/motd << 'END-of-verlihub/files/motd'
XThe name of the file indicates what data you should keep here.
X
Xfaq = Frequently Asked questions
Xrules = Hub rules users should abide by
Xmotd = Message of the day sent when a user enters hub
END-of-verlihub/files/motd
echo x - verlihub/files/patch-ad
sed 's/^X//' >verlihub/files/patch-ad << 'END-of-verlihub/files/patch-ad'
X--- scripts/trigger	Wed Apr 14 18:18:52 2004
X+++ scripts/trigger	Wed Apr 14 18:20:20 2004
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/local/bin/bash
X 
X if [ "$1" == "" ]; then
X 	echo Usage $0 -c command -f filename -a send_as_nick -h help_text
END-of-verlihub/files/patch-ad
echo x - verlihub/pkg-descr
sed 's/^X//' >verlihub/pkg-descr << 'END-of-verlihub/pkg-descr'
XVerlihub is a Linux/Unix Direct Connect protocol server (Hub).
XIt is written in c++, has relatively low CPU and RAM usage,
Xand has many useful features. It also uses a MySQL Database.
X
XWWW: http://verlihub.sourceforge.net
X
X-Hurbold
Xhurbold at yahoo.com
END-of-verlihub/pkg-descr
echo x - verlihub/distinfo
sed 's/^X//' >verlihub/distinfo << 'END-of-verlihub/distinfo'
XMD5 (verlihub-0.9.7RC4.tar.gz) = dea13297ddfc9e27a0f0d09deb02fc36
XSIZE (verlihub-0.9.7RC4.tar.gz) = 404798
END-of-verlihub/distinfo
echo x - verlihub/pkg-message
sed 's/^X//' >verlihub/pkg-message << 'END-of-verlihub/pkg-message'
X
X
X--------------------------------------------------------------------
X
XDocumentation has been installed in /usr/local/share/doc.
XSample files have been installed in /usr/local/share/examples.
XThese include the scripts necessary to start running Verlihub and
Xsome sample configuration files. 
XThe executable has been installed in /usr/local/bin. 
X
XThis port requires a working mysql server installation, either
Xlocally or remotely.
X 
XIf you are installing mysql, please make sure you understand the
Xsecurity implications and are willing to configure proper authenti-
Xcation for the mysql root user. 
XIf you do not, anyone can (will) gain full control of your databases.
X
XOnce you have a properly-running mysql server, please run the install
Xscript:
X
X/usr/local/share/examples/verlihub/scripts/install
X
XFollow the instructions given.
X
XYou will need the files in /usr/local/share/examples/verlihub/config
Xto run the hub. These should be put in the .verlihub directory that
Xyou created with the install script: 
X
Xcp -R /usr/local/share/examples/verlihub/config/ /path/to/.verlihub
X  
X
XYou may also wish to create a 'plugins' directory in .verlihub.
XIn the future customized plugins will go here.
X
XYou should also copy or move the scripts to the .verlihub directory:
X
Xcp -R /usr/local/share/examples/verlihub/scripts \
X/path/to/.verlihub
X
XVerlihub is a work in progress, and the documentation needs some
Xhelp. You should have everything you need here though.
X
XVisit http://verlihub.sourceforge.net for the project's homepage
Xor http://verlihub.no-ip.com for the project's forums.
X
X-------------------------------------------------------------------  
END-of-verlihub/pkg-message
echo x - verlihub/pkg-plist
sed 's/^X//' >verlihub/pkg-plist << 'END-of-verlihub/pkg-plist'
Xbin/verlihub
X%%PORTDOCS%%%%DOCSDIR%%/help
X%%PORTDOCS%%%%DOCSDIR%%/configuring
X%%PORTDOCS%%%%DOCSDIR%%/using
X%%PORTDOCS%%%%DOCSDIR%%/help_sql
X%%PORTDOCS%%%%DOCSDIR%%/params
X%%PORTDOCS%%%%DOCSDIR%%/features
X%%PORTDOCS%%%%DOCSDIR%%/verlihub
X%%PORTDOCS%%%%EXAMPLESDIR%%/scripts/trigger
X%%PORTDOCS%%%%EXAMPLESDIR%%/scripts/install
X%%PORTDOCS%%%%EXAMPLESDIR%%/scripts/regnick
X%%PORTDOCS%%%%EXAMPLESDIR%%/scripts/runhub
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/motd
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/faq
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/rules
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/help_usr
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/help_admin
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/help_op
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/help_reg
X%%PORTDOCS%%%%EXAMPLESDIR%%/config/help_master
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/scripts
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/config
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-verlihub/pkg-plist
echo x - verlihub/Makefile
sed 's/^X//' >verlihub/Makefile << 'END-of-verlihub/Makefile'
X# New ports collection makefile for:    verlihub
X# Date created:                 2 April 2004
X# Whom:                         Hurbold
X#
X# $FreeBSD$
X#
X
XPORTNAME=       verlihub
XPORTVERSION=    0.9.7r4
XCATEGORIES=     net
XMASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=     ${PORTNAME}
XDISTNAME=	verlihub-0.9.7RC4
X
XMAINTAINER=     hurbold at yahoo.com
XCOMMENT=        Verlihub Linux/Unix Direct Connect Hub Software
X
XBUILD_DEPENDS=	${LOCALBASE}/bin/perl5.8.2:${PORTSDIR}/lang/perl5.8:install
XLIB_DEPENDS=    GeoIP.3:${PORTSDIR}/net/GeoIP:install \
X		pcre.0:${PORTSDIR}/devel/pcre:install
XRUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash2:install
X
XWRKSRC=         ${WRKDIR}/verlihub-0.9.7cvs
X
XUSE_MYSQL=	yes
XUSE_GMAKE=      yes
XGNU_CONFIGURE=  yes
X
XCONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
X
Xpost-install:
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/docs/configuring.txt ${DOCSDIR}/configuring
X	${INSTALL_DATA} ${WRKSRC}/docs/help.sql ${DOCSDIR}/help_sql
X	${INSTALL_DATA} ${WRKSRC}/docs/using.txt ${DOCSDIR}/using
X	${INSTALL_DATA} ${FILESDIR}/features ${DOCSDIR}
X	${INSTALL_DATA} ${FILESDIR}/help ${DOCSDIR}
X	${INSTALL_DATA} ${FILESDIR}/params ${DOCSDIR}
X	${INSTALL_DATA} ${FILESDIR}/verlihub ${DOCSDIR}
X	@${MKDIR} ${EXAMPLESDIR}/config
X	${INSTALL_DATA} ${FILESDIR}/motd ${EXAMPLESDIR}/config/motd
X	${INSTALL_DATA} ${FILESDIR}/motd ${EXAMPLESDIR}/config/faq
X	${INSTALL_DATA} ${FILESDIR}/motd ${EXAMPLESDIR}/config/rules
X	${INSTALL_DATA} ${FILESDIR}/help_usr ${EXAMPLESDIR}/config/help_admin
X	${INSTALL_DATA} ${FILESDIR}/help_usr ${EXAMPLESDIR}/config/help_op
X	${INSTALL_DATA} ${FILESDIR}/help_usr ${EXAMPLESDIR}/config/help_usr
X	${INSTALL_DATA} ${FILESDIR}/help_usr ${EXAMPLESDIR}/config/help_master
X	${INSTALL_DATA} ${FILESDIR}/help_usr ${EXAMPLESDIR}/config/help_reg
X	@${MKDIR} ${EXAMPLESDIR}/scripts
X	${INSTALL_SCRIPT} ${WRKSRC}/scripts/trigger ${EXAMPLESDIR}/scripts
X	${INSTALL_SCRIPT} ${WRKSRC}/scripts/install ${EXAMPLESDIR}/scripts
X	${INSTALL_SCRIPT} ${WRKSRC}/scripts/regnick ${EXAMPLESDIR}/scripts
X	${INSTALL_SCRIPT} ${WRKSRC}/scripts/runhub ${EXAMPLESDIR}/scripts
X.endif
X
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 502010
XUSE_GCC=	3.3
X.endif
X
X.include <bsd.port.post.mk>
END-of-verlihub/Makefile
exit
--- verlihub ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list