Annotation of ports/www/sams/Makefile, Revision 1.2
1.1 yason 1: # $OpenBSD$
2:
3: COMMENT = Squid Account Management System
4:
5: DISTNAME = sams-1.0.4
6:
7: CATEGORIES = www
8:
9: HOMEPAGE = http://sams.perm.ru/
10:
11: #MAINTAINER = ???
12:
13: # GPLv2
14: PERMIT_PACKAGE_CDROM = Yes
15: PERMIT_PACKAGE_FTP = Yes
16: PERMIT_DISTFILES_CDROM =Yes
17: PERMIT_DISTFILES_FTP = Yes
18:
19: WANTLIB = c
20:
21: MASTER_SITES = http://sams.perm.ru/download/
22: EXTRACT_SUFX = .tar.bz2
23:
1.2 ! yason 24: RUN_DEPENDS = ::databases/mysql,-server \
! 25: :php5-core-*:www/php5/core \
! 26: :php5-gd-*:www/php5/extensions,-gd \
! 27: :php5-ldap-*:www/php5/extensions,-ldap \
! 28: :php5-mysql-*:www/php5/extensions,-mysql
1.1 yason 29: LIB_DEPENDS = mysqlclient::databases/mysql,-main \
30: pcre::devel/pcre
31:
32: USE_GMAKE = Yes
33: CONFIGURE_STYLE = gnu
34: CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
35: --with-mysql-libpath=${LOCALBASE}/lib \
36: --with-pcre-libpath=${LOCALBASE}/lib
37:
1.2 ! yason 38: NO_REGRESS = Yes
1.1 yason 39:
1.2 ! yason 40: #WEB_ROOT = /var/www/htdocs
1.1 yason 41:
1.2 ! yason 42: #pre-configure:
! 43: # @perl -pi -e 's|%%INSTALL%%|${INSTALL}|g' ${WRKSRC}/Makefile.in
! 44: # @perl -pi -e 's|%%INSTALL_SCRIPT%%|${INSTALL_SCRIPT}|g' ${WRKSRC}/Makefile.in
! 45: # @perl -pi -e 's|%%INSTALL_DATA%%|${INSTALL_DATA}|g' ${WRKSRC}/Makefile.in
! 46: # @perl -pi -e 's|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g' ${WRKSRC}/Makefile.in
! 47: # @perl -pi -e 's|%%prefix%%|${PREFIX}|g' ${WRKSRC}/Makefile.in
1.1 yason 48:
49: do-install:
50: .for i in sams samsdaemon samsf samsredir
51: ${INSTALL_PROGRAM} ${WRKSRC}/$i ${PREFIX}/bin/$i
52: .endfor
1.2 ! yason 53:
1.1 yason 54: ${INSTALL_DATA_DIR} ${PREFIX}/share/sams/
1.2 ! yason 55:
! 56: .for i in doc doc/EN doc/RU doc/img
! 57: ${INSTALL_DATA_DIR} ${PREFIX}/share/sams/$i
! 58: .endfor
! 59: ${INSTALL_DATA} ${WRKSRC}/doc/EN/* ${PREFIX}/share/sams/doc/EN/
! 60: ${INSTALL_DATA} ${WRKSRC}/doc/RU/* ${PREFIX}/share/sams/doc/RU/
! 61: ${INSTALL_DATA} ${WRKSRC}/doc/img/* ${PREFIX}/share/sams/doc/img/
1.1 yason 62: ${INSTALL_DATA} ${WRKSRC}/etc/sams.conf.default ${PREFIX}/share/sams/
1.2 ! yason 63:
! 64: cd ${WRKSRC}/php && find * -type d -exec ${INSTALL_DATA_DIR} \
! 65: "${PREFIX}/share/sams/{}" \;
! 66: cd ${WRKSRC}/php && find * -type f -exec ${INSTALL_DATA} \
! 67: "{}" "${PREFIX}/share/sams/{}" \;
! 68:
! 69: .for i in sams_db.sql squid_db.sql
! 70: ${INSTALL_DATA} ${WRKSRC}/mysql/$i ${PREFIX}/share/sams/data/
! 71: .endfor
! 72:
! 73: ${INSTALL_DATA} ${WRKSRC}/update/upgrade_mysql_table.php ${PREFIX}/share/sams/data/
! 74:
! 75: #cp ./mysql/recover_admin_passwd /usr/local/bin;
! 76: #chmod 777 /usr/local/share/sams/data;
! 77: #chmod ugo+x /usr/local/share/sams/bin/*;
1.1 yason 78:
79: .include <bsd.port.mk>
CVSweb