-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcifs-utils
More file actions
47 lines (32 loc) · 882 Bytes
/
cifs-utils
File metadata and controls
47 lines (32 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
set -e
PKG_VER=7.5
URL=https://www.samba.org/ftp/linux-cifs/cifs-utils/cifs-utils-$PKG_VER.tar.bz2
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
autoreconf -fi
./configure --prefix=/usr --sbindir=/usr/sbin
make
# Install
sudo mkdir -p /pkgs/$PACKAGE
sudo make DESTDIR=/pkgs/$PACKAGE install
sudo make install
cd /pkgs
# Legacy program doesn't use $PREFIX/sbin for some reason
mv /pkgs/$PACKAGE/sbin/* /pkgs/$PACKAGE/usr/sbin/
rm -r /pkgs/$PACKAGE/sbin
sudo echo "mitkrb samba talloc keyutils" > /pkgs/$PACKAGE/depends
sudo echo "$PKG_VER" > /pkgs/$PACKAGE/version
sudo tar -cvapf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR