mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
Fix STAGEDIR packaging problems in pkg-install script
This commit is contained in:
parent
2b202f68ea
commit
572bfdbc48
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334463
2 changed files with 10 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME?= ${SAMBA4_PORTNAME}
|
||||
PORTVERSION?= ${SAMBA4_VERSION}
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES?= net
|
||||
MASTER_SITES= ${MASTER_SITE_SAMBA}
|
||||
MASTER_SITE_SUBDIR= samba/stable samba/rc
|
||||
|
@ -519,6 +519,8 @@ post-install:
|
|||
. endfor
|
||||
@${LN} -sf smb.conf.5.gz ${STAGEDIR}${PREFIX}/man/man5/smb4.conf.5.gz
|
||||
.endif
|
||||
# Run post-install script
|
||||
@${SETENV} STAGEDIR=${STAGEDIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.if ${PORT_OPTIONS:MDEVELOPER}
|
||||
test: build
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /bin/sh
|
||||
#!/bin/sh
|
||||
#
|
||||
PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin
|
||||
|
||||
|
@ -11,21 +11,20 @@ SAMBA4_OWNER=root
|
|||
SAMBA4_GROUP=wheel
|
||||
INSTALL_DATA="install -c -m 0444"
|
||||
INSTALL_DIR="install -d -m 0755"
|
||||
CHMOD="chmod"
|
||||
|
||||
post-install() {
|
||||
if [ $(id -u) -eq 0 ]; then
|
||||
INSTALL_DATA="${INSTALL_DATA} -o ${SAMBA4_OWNER} -g ${SAMBA4_GROUP}"
|
||||
INSTALL_DIR="${INSTALL_DIR} -o ${SAMBA4_OWNER} -g ${SAMBA4_GROUP}"
|
||||
fi
|
||||
${INSTALL_DIR} ${SAMBA4_LOGDIR}
|
||||
${INSTALL_DIR} ${SAMBA4_RUNDIR}
|
||||
${INSTALL_DIR} ${SAMBA4_LOCKDIR}
|
||||
${INSTALL_DIR} ${SAMBA4_MODULEDIR}
|
||||
${INSTALL_DIR} ${SAMBA4_PRIVATEDIR}
|
||||
${INSTALL_DIR} ${STAGEDIR}${SAMBA4_LOGDIR}
|
||||
${INSTALL_DIR} ${STAGEDIR}${SAMBA4_RUNDIR}
|
||||
${INSTALL_DIR} ${STAGEDIR}${SAMBA4_LOCKDIR}
|
||||
${INSTALL_DIR} ${STAGEDIR}${SAMBA4_MODULEDIR}
|
||||
${INSTALL_DIR} ${STAGEDIR}${SAMBA4_PRIVATEDIR}
|
||||
for dir in auth bind9 gensec gpext idmap ldb nss_info pdb perfcount \
|
||||
process_model service vfs; do
|
||||
${INSTALL_DIR} "${SAMBA4_MODULEDIR}/${dir}"
|
||||
${INSTALL_DIR} "${STAGEDIR}${SAMBA4_MODULEDIR}/${dir}"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue