View | Details | Raw Unified | Return to bug 115243
Collapse All | Expand All

(-)www/b2evolution.new/Makefile (-2 / +9 lines)
Lines 2-12 Link Here
2
# Date created:		2005-04-16
2
# Date created:		2005-04-16
3
# Whom:			chinsan <chinsan@mail20000.com.tw>
3
# Whom:			chinsan <chinsan@mail20000.com.tw>
4
#
4
#
5
# $FreeBSD: ports/www/b2evolution/Makefile,v 1.17 2007/08/04 11:41:25 gabor Exp $
5
# $FreeBSD: ports/www/b2evolution/Makefile,v 1.16 2007/06/14 21:14:48 pav Exp $
6
#
6
#
7
7
8
PORTNAME=	b2evolution
8
PORTNAME=	b2evolution
9
PORTVERSION=	1.10.2
9
PORTVERSION=	1.10.2
10
PORTREVISION=	1
10
CATEGORIES=	www
11
CATEGORIES=	www
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	evocms
13
MASTER_SITE_SUBDIR=	evocms
Lines 27-39 Link Here
27
28
28
TMPDIR?=	${PORTNAME}
29
TMPDIR?=	${PORTNAME}
29
WRKSRC=		${WRKDIR}/${TMPDIR}
30
WRKSRC=		${WRKDIR}/${TMPDIR}
30
31
B2EVO_URL?=	b2evo
31
B2EVO_URL?=	b2evo
32
B2EVO_DIR?=	www/${B2EVO_URL}
32
B2EVO_DIR?=	www/${B2EVO_URL}
33
PLIST=		${WRKDIR}/pkg-plist
33
PLIST=		${WRKDIR}/pkg-plist
34
34
35
OPTIONS=	LOCAL_DB_SERVER "Want to use local MySQL server?" on
36
35
.include <bsd.port.pre.mk>
37
.include <bsd.port.pre.mk>
36
38
39
.if defined(WITH_LOCAL_DB_SERVER)
40
USE_MYSQL=	YES
41
RUN_DEPENDS+=	mysql-server>=0:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
42
.endif
43
37
pre-install:
44
pre-install:
38
	@cd ${WRKSRC} && ${FIND} -s . -type f | \
45
	@cd ${WRKSRC} && ${FIND} -s . -type f | \
39
		${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
46
		${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
(-)www/b2evolution.new/pkg-message (-25 / +29 lines)
Lines 2-35 Link Here
2
b2evolution is now installed. If you install it for the first time,
2
b2evolution is now installed. If you install it for the first time,
3
you may need to perform the following steps.
3
you may need to perform the following steps.
4
4
5
1. Create the MySQL database:
5
1. Make sure your mysql-server is running.
6
6
7
  # mysqladmin --user=root -p create b2evolution
7
2. Create a new MySQL database:
8
8
9
2. Create a mysql user/password for the b2evolution database:
9
   # mysqladmin --user=root -p create b2evolution
10
11
   (in mysql root's password is empty unless you have set it in advance).
12
13
3. Create a mysql user/password for the b2evolution database:
10
  (change user and/or password if required)
14
  (change user and/or password if required)
11
15
12
  # mysql -u root -p
16
   # mysql -u root -p
13
  mysql> GRANT ALL ON b2evolution.* TO b2evouser@localhost 
17
   mysql> GRANT ALL ON b2evolution.* TO b2evouser@localhost 
14
	 IDENTIFIED BY 'b2evopassword';
18
 	  IDENTIFIED BY 'b2evopassword';
15
  mysql> FLUSH PRIVILEGES;
19
   mysql> FLUSH PRIVILEGES;
16
  mysql> QUIT;
20
   mysql> QUIT;
17
21
18
3. Please add the following to your apache config, and restart.
22
4. Add the following to your apache config, and restart.
19
    [1;32m#
23
   #
20
    # Directives to allow use of b2evolution
24
   # Directives to allow use of b2evolution
21
    #
25
   #
22
    Alias /%%B2EVO_URL%% "%%PREFIX%%/%%B2EVO_DIR%%/"[m
26
   Alias /%%B2EVO_URL%% "%%PREFIX%%/%%B2EVO_DIR%%/"
23
27
   #
24
4.Open b2evo installation page in your web browser 
28
25
  and login with b2evouser/b2evopassword
29
5. Open b2evo installation page in your web browser 
26
30
   and login with b2evouser/b2evopassword
27
  http://www.your.host/%%B2EVO_URL%%/blogs/install/
31
28
32
   http://www.your.host/%%B2EVO_URL%%/blogs/install/
29
  If you are doing a fresh install...
33
30
  Note that password carefully! It is a random password that is given to you 
34
   (if you are doing a fresh install...)
31
  when you install b2evolution.
35
   Note that password carefully! It is a random password that is given to you 
32
  If you lose it, you will have to delete the database tables and reinstall.
36
   when you install b2evolution.
37
   If you lose it, you will have to delete the database tables and reinstall.
33
38
34
  Have fun!
35
==================================================================
39
==================================================================

Return to bug 115243