From db4bdf9a976a3b23b039d955129df29fdf932903 Mon Sep 17 00:00:00 2001 From: lippe Date: Fri, 16 May 2008 14:17:15 +0000 Subject: - Update MASTER_SITES [1]. - Move pkg-message to FILESDIR. - Respect now NOPORTDOCS/NOPORTEXAMPLES. [1] The distfile is obtained through a client-side script, which does not work with fetch(1). PR: ports/121095 Submitted by: "Rashid N. Citycat Achilov" Reworked by: lippe (myself) Approved by: gabor (mentor), maintainer timeout (> 2 weeks) --- sysutils/mountsmb2/Makefile | 35 ++++++++++++++------------------- sysutils/mountsmb2/files/pkg-message.in | 22 +++++++++++++++++++++ sysutils/mountsmb2/pkg-message | 22 --------------------- 3 files changed, 37 insertions(+), 42 deletions(-) create mode 100644 sysutils/mountsmb2/files/pkg-message.in delete mode 100644 sysutils/mountsmb2/pkg-message diff --git a/sysutils/mountsmb2/Makefile b/sysutils/mountsmb2/Makefile index 4b80eff5180..4153b80b3d4 100644 --- a/sysutils/mountsmb2/Makefile +++ b/sysutils/mountsmb2/Makefile @@ -8,37 +8,32 @@ PORTNAME= mountsmb2 PORTVERSION= 0.90.2 CATEGORIES= sysutils net -MASTER_SITES= ftp://ftp.granch.ru/pub/other/ +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= lippe MAINTAINER= achilov-rn@askd.ru COMMENT= SMB/CIFS shares mounting scripts to do it at login RUN_DEPENDS= nbtscan:${PORTSDIR}/net-mgmt/nbtscan \ - sudo:${PORTSDIR}/security/sudo \ - -.if !exists(/usr/bin/host) -RUN_DEPENDS+= host:${PORTSDIR}/dns/bind9 -.endif + sudo:${PORTSDIR}/security/sudo USE_BZIP2= yes NO_BUILD= yes -do-install: - -.for i in smb2nsmbrc mountsmb2 - ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin -.endfor -.if !defined(NOPORTDOCS) - -@${MKDIR} ${EXAMPLESDIR} +EXAMPLES= sudoers .login .nsmbrc .mssmbrc nsmb.conf +SCRIPTS= smb2nsmbrc mountsmb2 -.for i in sudoers .login .nsmbrc .mssmbrc nsmb.conf - ${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR} -.endfor +SUB_FILES= pkg-message - -@${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.FreeBSD ${DOCSDIR} - - @${SED} -e "s,%%EXAMPLESDIR%%,${EXAMPLESDIR},g" ${PKGMESSAGE} +do-install: + @${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${PREFIX}/bin +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR} +.endif +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README.FreeBSD ${DOCSDIR} .endif .include diff --git a/sysutils/mountsmb2/files/pkg-message.in b/sysutils/mountsmb2/files/pkg-message.in new file mode 100644 index 00000000000..b7720dddcd5 --- /dev/null +++ b/sysutils/mountsmb2/files/pkg-message.in @@ -0,0 +1,22 @@ +*********************************************************** + +Please, read %%EXAMPLESDIR%%/README.FreeBSD +*B*E*F*O*R*E* the FIRST RUN of Mountsmb2! + +In order to run Mountsmb2 properly, be sure that: + +1. Your kernel is configured properly +2. Your /etc/nsmb.conf file is configured properly +3. Your .nsmbrc file is configured properly (this means, that + the password to *ANY* server in your network is recorded in + this file. For semi-automatic creation of .nsmbrc you can use + the smb2nsmbrc script) +4. Your .mssmbrc file is created and filled properly + +Keep in mind, that: + +1. Mountsmb2 only calls mount_smbfs to mount shares with params, described in + a .mssmbrc file +2. DO NOT DISTURB ME ABOUT FreeBSD's SMB IMPLEMENTATION! + +************************************************************ diff --git a/sysutils/mountsmb2/pkg-message b/sysutils/mountsmb2/pkg-message deleted file mode 100644 index b7720dddcd5..00000000000 --- a/sysutils/mountsmb2/pkg-message +++ /dev/null @@ -1,22 +0,0 @@ -*********************************************************** - -Please, read %%EXAMPLESDIR%%/README.FreeBSD -*B*E*F*O*R*E* the FIRST RUN of Mountsmb2! - -In order to run Mountsmb2 properly, be sure that: - -1. Your kernel is configured properly -2. Your /etc/nsmb.conf file is configured properly -3. Your .nsmbrc file is configured properly (this means, that - the password to *ANY* server in your network is recorded in - this file. For semi-automatic creation of .nsmbrc you can use - the smb2nsmbrc script) -4. Your .mssmbrc file is created and filled properly - -Keep in mind, that: - -1. Mountsmb2 only calls mount_smbfs to mount shares with params, described in - a .mssmbrc file -2. DO NOT DISTURB ME ABOUT FreeBSD's SMB IMPLEMENTATION! - -************************************************************ -- cgit