Changeset 18691 for trunk/dports


Ignore:
Timestamp:
Jul 23, 2006, 12:28:25 AM (18 years ago)
Author:
markd
Message:

Bug: NONE
Submitted by: markd@…
Reviewed by:
Approved by:
Obtained from:
ui_msg changes only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/nedi/Portfile

    r18210 r18691  
    1 # $Id: Portfile,v 1.12 2006/06/02 20:09:02 markd Exp $
     1# $Id: Portfile,v 1.13 2006/07/23 00:28:25 markd Exp $
    22
    33PortSystem      1.0
     
    8787        sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db
    8888
    89 -Start MySQL:
    90         sudo ${prefix}/share/mysql5/mysql/mysql.server start
    91 
    92 -Set MySQL to run at system boot
     89-Start MySQL and set it to run at system boot:
    9390        sudo launchctl load -w /Library/LaunchDaemons/org.darwinports.mysql5.plist
    9491
     
    10097
    10198
    102 2) Download Apache 2 and PHP Binaries
     992) Install PHP5 with SNMP support and Apache 2
    103100------------------------------------------------
    104 -Download Complete Apache 2 and Complete PHP
    105         http://www.serverlogistics.com/downloads.php
     101        sudo port install php5 +apache2 +mysql5 +snmp
    106102
    107   Notes about Apache and PHP
    108   ----------------------------------
    109   NeDi requires PHP with SNMP support enabled, which is a non-default option
    110   and extremely challenging to compile into PHP.  Complete PHP is a binary
    111   installed PHP package with SNMP support and it requires Complete Apache 2.
     103        sudo ${prefix}/apache2/bin/apxs -a -e -n \"php5\" libphp5.so
    112104
    113105
    114 3) Create an OS X NeDi user (or choose an existing one) using the Accounts
    115    pane in System Preferences
     1063) Turn on Apache 2
     107------------------------------------------------
     108   Turn off Apple's Apache 1.3 (Personal Web Sharing in System Preferences).  Then execute
     109   these commands:
     110
     111        cd ${prefix}/apache2/conf
     112        sudo cp httpd.conf.sample httpd.conf
     113
     114   Edit the user/group variables in the Apache 2 httpd.conf to be your selected NeDi user/group.
     115
     116   Start Apache 2 and set it to run at system boot:
     117        sudo launchctl load -w /Library/LaunchdDaemons/org.darwinports.apache2.plist
    116118
    117119
    118 4) Install Complete Apache 2 (version 2.0.52
    119 ------------------------------------------------
    120 -Turn off Personal Web Sharing
    121 -Run Apache2.pkg installer
    122 -Drag Apache2.prefPane to /Library/PreferencePanes
    123         Create this folder if it does not exist
    124 -Edit httpd.conf: pico /Library/Apache2/conf/httpd.conf
    125 
    126 User <nedi-user>
    127 Group <nedi-group>
    128 
    129 -Start Apache 2 via System Preferences pane
    130 
    131 
    132 5) Install Complete PHP 4 (version 4.3.9)
    133 ------------------------------------------------
    134 -Run PHP4.pkg installer
    135 -Edit /Library/PHP4/lib/php.ini
    136         mysql.default_socket = ${prefix}/var/run/mysql5/mysqld.sock
    137 -Drag test.php to /Library/Apache2/htdocs
    138 -Start Apache via the Apache 2 System Preferences pane
    139 -Test PHP with this link: http://localhost/test.php
    140 
    141 
    142 6) Configure NeDi, initialize database, and Login to NeDi
     1204) Configure NeDi, initialize database, and Login to NeDi
    143121-----------------------------------------------
    144122-Set NeDi owner: sudo chown -R <nedi-user>:<nedi-group> ${prefix}/share/${name}/
    145 -Apache symlink: ln -s ${prefix}/share/${name}/html/  /Library/Apache2/htdocs/nedi
     123-Apache symlink: ln -s ${prefix}/share/${name}/html/  ${prefix}/apache2/htdocs/nedi
    146124-Edit nedi.conf Backend/Authen/Device Access sections: sudo pico ${prefix}/share/${name}/nedi.conf
    147125        Leave nedi.conf permissions at 600 to protect your network passwords!
     
    172150
    173151
    174 7) Discover Your Network with NeDi
     1525) Discover Your Network with NeDi
    175153-----------------------------------------------
    176154-Edit the seedlist file: pico ${prefix}/share/${name}/seedlist
Note: See TracChangeset for help on using the changeset viewer.