Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= mydns-ng |
4 |
PORTNAME= mydns-ng |
5 |
PORTVERSION= 1.2.8.31 |
5 |
PORTVERSION= 1.2.8.31 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= dns databases |
7 |
CATEGORIES= dns databases |
8 |
MASTER_SITES= SF/${PORTNAME}/mydns/${PORTVERSION} |
8 |
MASTER_SITES= SF/${PORTNAME}/mydns/${PORTVERSION} |
9 |
DISTNAME= mydns-${PORTVERSION} |
9 |
DISTNAME= mydns-${PORTVERSION} |
Lines 11-16
Link Here
|
11 |
MAINTAINER= gaod@hychen.org |
11 |
MAINTAINER= gaod@hychen.org |
12 |
COMMENT= Next Generation DNS Server for sql based DNS services |
12 |
COMMENT= Next Generation DNS Server for sql based DNS services |
13 |
|
13 |
|
|
|
14 |
LICENSE= GPLv2 |
15 |
|
14 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
15 |
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc |
17 |
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc |
16 |
USES= iconv |
18 |
USES= iconv |
Lines 21-84
Link Here
|
21 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
23 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
22 |
|
24 |
|
23 |
INFO= mydns |
25 |
INFO= mydns |
24 |
MAN5= mydns.conf.5 |
|
|
25 |
MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-conf.8 |
26 |
|
27 |
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO |
26 |
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO |
28 |
|
27 |
|
29 |
OPTIONS_DEFINE= PGSQL ALIAS SSL NLS |
28 |
OPTIONS_DEFINE= ALIAS SSL NLS |
30 |
OPTIONS_DEFAULT= ALIAS |
29 |
OPTIONS_SINGLE= DATABASE |
|
|
30 |
OPTIONS_SINGLE_DATABASE= PGSQL MYSQL |
31 |
OPTIONS_DEFAULT= ALIAS MYSQL |
31 |
ALIAS_DESC= Server side aliasas |
32 |
ALIAS_DESC= Server side aliasas |
|
|
33 |
OPTIONS_SUB= yes |
32 |
|
34 |
|
33 |
NO_STAGE= yes |
35 |
ALIAS_CONFIGURE_ENABLE= alias |
34 |
.include <bsd.port.options.mk> |
|
|
35 |
|
36 |
|
36 |
.if ${PORT_OPTIONS:MALIAS} |
37 |
SSL_USE= OPENSSL=yes |
37 |
CONFIGURE_ARGS+=--enable-alias |
38 |
SSL_CONFIGURE_ON= --with-openssl \ |
38 |
.endif |
39 |
--with-openssl-include=${OPENSSLINC} \ |
|
|
40 |
--with-openssl-lib=${OPENSSLLIB} |
39 |
|
41 |
|
40 |
.if ${PORT_OPTIONS:MSSL} |
42 |
PGSQL_USE= PGSQL=yes |
41 |
USE_OPENSSL=yes |
43 |
PGSQL_CONFIGURE_ON= --with-pgsql \ |
42 |
CONFIGURE_ARGS+=--with-openssl \ |
44 |
--with-pgsql-include=${LOCALBASE}/include \ |
43 |
--with-openssl-include=${OPENSSLINC} \ |
45 |
--with-pgsql-lib=${LOCALBASE}/lib |
44 |
--with-openssl-lib=${OPENSSLLIB} |
46 |
PGSQL_CONFIGURE_OFF= --without-pgsql |
45 |
.endif |
|
|
46 |
|
47 |
|
47 |
.if ${PORT_OPTIONS:MPGSQL} |
48 |
MYSQL_USE= MYSQL=yes |
48 |
USE_PGSQL= yes |
49 |
MYSQL_CONFIGURE_ON= --with-mysql \ |
49 |
CONFIGURE_ARGS+=--without-mysql \ |
50 |
--with-mysql-include=${LOCALBASE}/include/mysql \ |
50 |
--with-pgsql-include=${LOCALBASE}/include \ |
51 |
--with-mysql-lib=${LOCALBASE}/lib/mysql |
51 |
--with-pgsql-lib=${LOCALBASE}/lib |
52 |
MYSQL_CONFIGURE_OFF= --without-mysql |
52 |
PKGNAMESUFFIX= -pgsql |
|
|
53 |
.else |
54 |
CONFIGURE_ARGS+=--without-pgsql \ |
55 |
--with-mysql-include=${LOCALBASE}/include/mysql \ |
56 |
--with-mysql-lib=${LOCALBASE}/lib/mysql |
57 |
PKGNAMESUFFIX= -mysql |
58 |
USE_MYSQL= yes |
59 |
.endif |
60 |
|
53 |
|
61 |
.if ${PORT_OPTIONS:MNLS} |
54 |
NLS_CONFIGURE_ENABLE= nls |
62 |
CONFIGURE_ARGS+=--disable-nls |
55 |
NLS_USES= gettext |
63 |
PLIST_SUB+= NLS="@comment " |
|
|
64 |
.else |
65 |
CONFIGURE_ARGS+=--with-included-gettext |
66 |
USES+= gettext |
67 |
PLIST_SUB+= NLS="" |
68 |
.endif |
69 |
|
56 |
|
70 |
post-install: |
57 |
post-install: |
71 |
.if ${PORT_OPTIONS:MDOCS} |
58 |
@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib |
72 |
@${MKDIR} ${DOCSDIR}/contrib |
|
|
73 |
.for f in ${DOCS} |
59 |
.for f in ${DOCS} |
74 |
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ |
60 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ |
75 |
.endfor |
61 |
.endfor |
76 |
@${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${DOCSDIR}/contrib/ |
62 |
${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${STAGEDIR}${DOCSDIR}/contrib/ |
77 |
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${DOCSDIR}/contrib/ |
63 |
${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${STAGEDIR}${DOCSDIR}/contrib/ |
78 |
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${DOCSDIR}/contrib/ |
64 |
${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${STAGEDIR}${DOCSDIR}/contrib/ |
79 |
@${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/ |
65 |
${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/contrib/ |
80 |
.endif |
66 |
@${STAGEDIR}${PREFIX}/sbin/mydns --dump-config >${STAGEDIR}${PREFIX}/etc/mydns.conf.sample |
81 |
@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample |
|
|
82 |
@${CAT} ${PKGMESSAGE} |
83 |
|
67 |
|
84 |
.include <bsd.port.mk> |
68 |
.include <bsd.port.mk> |