Changeset ebc5ae5 for npl/internetserver/dhcp
- Timestamp:
- 01/22/17 18:18:59 (8 years ago)
- Branches:
- gcc484, master, ntop, perl-5.22
- Children:
- 0c5671f
- Parents:
- f2411e4
- Location:
- npl/internetserver/dhcp
- Files:
-
- 11 added
- 3 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/internetserver/dhcp/dhcp.SlackBuild
rf2411e4 rebc5ae5 1 #!/bin/sh 1 #!/bin/bash 2 # 3 # Automaticly created by importpackage v1.0 4 # Imported from: http://mirrors.slackware.com/slackware/slackware-current/source/n/dhcp/ 5 # Created at Fri Jan 20 21:46:54 CET 2017 2 6 3 # Set initial variables: 7 #DEP:bind 8 9 ########### source original slackbuild (hopefully we dont need to modify it) 4 10 CWD=`pwd` 5 if [ "$TMP" = "" ]; then 6 TMP=$CWD 7 fi 8 PKG=$TMP/package-dhcp 11 set -e 12 source ./dhcp.SlackBuild.orig 9 13 10 VERSION=4.2.511 ARCH=i38612 BUILD=113 14 14 if [ ! -d $TMP ]; then 15 mkdir -p $TMP # location to build the source 16 fi 17 if [ ! -d $PKG ]; then 18 mkdir -p $PKG # place for the package to be built 19 fi 15 ############ make syn3 packages 16 cd $CWD 17 for PKG in /tmp/package-*; do 18 NAME=`echo $PKG| sed 's/.*package-//'| sed 's/-/_/g'` 19 20 #config will be in seperate package 21 rm -rf $PKG/etc 2>/dev/null|| true 20 22 21 # Explode the package framework: 22 cd $PKG 23 explodepkg $CWD/_dhcp.tar.gz 23 #seperate dev-package 24 syn3_move_dev $PKG $PKG""_dev 25 syn3_makepkg $PKG""_dev $NAME""_dev $VERSION $ARCH || exit 1 24 26 25 echo "+=============+" 26 echo "| dhcp-$VERSION |" 27 echo "+=============+" 28 cd $TMP 29 tar xzvf $CWD/dhcp-$VERSION.tar.gz 30 cd dhcp-$VERSION 31 32 # Borrowed from https://github.com/ipfire/ipfire-3.x/tree/master/dhcp/patches 33 # Apply patches in a special order. 34 PATCHES="dhcp-4.2.5-remove-bind.patch \ 35 dhcp-4.2.4-P1-remove-dst.patch \ 36 dhcp-4.2.0-errwarn-message.patch \ 37 dhcp-4.2.0-release-by-ifup.patch \ 38 dhcp-4.2.4-unicast-bootp.patch \ 39 dhcp-4.2.0-default-requested-options.patch \ 40 dhcp-4.2.2-xen-checksum.patch \ 41 dhcp-4.2.5-manpages.patch \ 42 dhcp-4.2.0-garbage-chars.patch \ 43 dhcp-4.2.0-add_timeout_when_NULL.patch \ 44 dhcp-4.2.4-64_bit_lease_parse.patch \ 45 dhcp-4.2.0-logpid.patch \ 46 dhcp-4.2.4-UseMulticast.patch \ 47 dhcp-4.2.4-improved-xid.patch \ 48 dhcp-4.2.5-systemtap.patch \ 49 dhcp-4.2.3-P2-log_perror.patch \ 50 dhcp-4.2.4-getifaddrs.patch \ 51 dhcp-4.2.4-send_release.patch \ 52 dhcp-4.2.5-rfc5970-dhcpv6-options-for-network-boot.patch \ 53 dhcp-4.2.4-failOverPeer.patch \ 54 dhcp-4.2.5b1-atf-pkgconfig.patch \ 55 dhcp-4.2.4-P1-interval.patch \ 56 dhcp-4.2.4-P2-conflex-do-forward-updates.patch \ 57 dhcp-4.2.4-P2-dupl-key.patch \ 58 dhcp-4.2.5-next-server.patch" 59 60 for P in $PATCHES ; do 61 echo "Applying patch $P" 62 patch -p1 < $CWD/ipfire-3.x/dhcp/patches/$P || exit 27 #make main package 28 syn3_makepkg $PKG $NAME $VERSION $ARCH || exit 1 63 29 done 64 65 #patch -p1 < $CWD/dhcp-4.2.5-remove-bind.patch || exit 166 #patch -p1 < $CWD/dhcp-4.2.4-getifaddrs.patch || exit 167 68 export MAKEFLAGS="-j10"69 ./configure --enable-ipv4-pktinfo \70 --disable-static \71 --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \72 --with-srv6-lease-file=/var/state/dhcp/dhcpd6.leases \73 --with-cli-lease-file=/var/state/dhcp/dhclient.leases \74 --with-cli6-lease-file=/var/state/dhcp/dhclient6.leases || exit 175 76 make DEBUG="-O2 -march=i386 -mcpu=i686" || exit 177 mkdir -p $PKG/usr/doc/dhcp-$VERSION78 cp -a ANONCVS CHANGES COPYRIGHT README RELNOTES $PKG/usr/doc/dhcp-$VERSION79 mkdir -p $PKG/usr/doc/dhcp-$VERSION/examples80 cp -a client/dhclient.conf server/dhcpd.conf \81 $PKG/usr/doc/dhcp-$VERSION/examples82 chown -R root.root $PKG/usr/doc/dhcp-$VERSION83 cat << EOF > $PKG/etc/dhcpd.conf.new84 # dhcpd.conf85 #86 # Configuration file for ISC dhcpd (see 'man dhcpd.conf')87 #88 allow unknown-clients;89 ddns-updates off;90 91 subnet 192.168.0.0 netmask 255.255.255.0 {92 range 192.168.0.100 192.168.0.254;93 option domain-name-servers 192.168.0.1,192.168.0.1;94 option routers 192.168.0.1;95 option domain-name "";96 }97 EOF98 99 cat << EOF > $PKG/etc/dhclient.conf.new100 # dhclient.conf101 #102 # Configuration file for ISC dhclient (see 'man dhclient.conf')103 #104 EOF105 106 mkdir -p $PKG/service/dhcpd107 cat << EOF > $PKG/service/dhcpd/run108 #!/bin/bash109 exec /usr/sbin/dhcpd -f110 EOF111 112 mkdir -p $PKG/etc/postinst.d113 cp $CWD/post.dhcp $PKG/etc/postinst.d || exit 1114 chmod +x $PKG/etc/postinst.d/post.dhcp || exit 1115 116 chmod +x $PKG/service/dhcpd/run117 cat client/scripts/linux > $PKG/sbin/dhclient-script118 chmod 700 $PKG/sbin/dhclient-script119 ( cd work.linux-2.2120 strip server/dhcpd client/dhclient relay/dhcrelay121 cat server/dhcpd > $PKG/usr/sbin/dhcpd122 cat relay/dhcrelay > $PKG/usr/sbin/dhcrelay123 cat client/dhclient > $PKG/sbin/dhclient )124 mkdir -p $PKG/usr/man/man5125 mkdir -p $PKG/usr/man/man8126 for dir in client server ; do127 cd $dir128 for file in *.5 ; do129 cat $file | sed -e "s#ETCDIR#/etc#g" -e "s#DBDIR#/var/db#g" \130 -e "s#RUNDIR#/var/run#g" | gzip -9c > $PKG/usr/man/man5/$file.gz131 done132 for file in *.8 ; do133 cat $file | sed -e "s#ETCDIR#/etc#g" -e "s#DBDIR#/var/db#g" \134 -e "s#RUNDIR#/var/run#g" | gzip -9c > $PKG/usr/man/man8/$file.gz135 done136 cd ..137 done138 cat relay/dhcrelay.8 | sed -e "s#ETCDIR#/etc#g" -e "s#DBDIR#/var/db#g" \139 -e "s#RUNDIR#/var/run#g" | gzip -9c > $PKG/usr/man/man8/dhcrelay.8.gz140 mkdir -p $PKG/install141 cat $CWD/slack-desc > $PKG/install/slack-desc142 143 # Build the package:144 cd $PKG145 NAME=`echo $0|cut -f2 -d'.'`146 makepkg -l y -c n $CWD/$NAME.pkg > /dev/null &&147 echo $VERSION > $CWD/$NAME.version &&148 arch > $CWD/$NAME.arch &&149 150 # Clean up the extra stuff:151 if [ ! "$1" = "--nocleanup" ]; then152 rm -rf $TMP/dhcp-$VERSION153 rm -rf $PKG154 fi -
npl/internetserver/dhcp/dhcp.arch
-
Property
mode
changed from
100755
to100644
-
Property
mode
changed from
-
npl/internetserver/dhcp/dhcp.build
rf2411e4 rebc5ae5 1 6132 1 4 -
npl/internetserver/dhcp/dhcp.md5
rf2411e4 rebc5ae5 1 6489e919ac093d17249270ee9be1020e ./dhcp-4.2.5.tar.gz 2 ff2f56a7bf5e429a1d7e3680add1cb32 ./dhcp.pkg 3 96ad655b913e372f39410075aa209468 ./dhcp.SlackBuild 4 692a1772b4fddf96a780ddc390e03c61 ./dhcp.SlackBuild.log.gz 5 11ca796082e450d64b73a03d804ad864 ./_dhcp.tar.gz 6 2bae4a4af494aed24918e9cc2935afa4 ./ipfire-3.x/dhcp/dhcp.nm 7 c4425c49f15d8a967d980dca4cb91d7e ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-add_timeout_when_NULL.patch 8 82ccdfe9f75077b5f77a7787c7faaa08 ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-default-requested-options.patch 9 745fa4a15be1da98930f666b6041f161 ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-dhclient-decline-backoff.patch 10 fda8ab215da2a9f55cb3e9a7f76d9afc ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-errwarn-message.patch 11 3f012e6381008d6c1f085069850a3bdf ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-garbage-chars.patch 12 d588188092bf2fb0997c85cf972fdaf6 ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-honor-expired.patch 13 3392012a8c190e38874290eac705ddd4 ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-logpid.patch 14 683e5a5bbd93cef62acf3a1cdb11d7b8 ./ipfire-3.x/dhcp/patches/dhcp-4.2.0-release-by-ifup.patch 15 6430a32fd2aade8493332b7705cd3ab5 ./ipfire-3.x/dhcp/patches/dhcp-4.2.1-retransmission.patch 16 d87c3e2f859f3ee63b749a64910fdeef ./ipfire-3.x/dhcp/patches/dhcp-4.2.2-capability.patch 17 f0cb1e263a3c87316f8e3a9ce7e0680d ./ipfire-3.x/dhcp/patches/dhcp-4.2.2-CLOEXEC.patch 18 22dfef7a39d8cb378f5d8444b772236e ./ipfire-3.x/dhcp/patches/dhcp-4.2.2-gpxe-cid.patch 19 3ad4622e40d1b8d478cd4533b4fd962a ./ipfire-3.x/dhcp/patches/dhcp-4.2.2-xen-checksum.patch 20 861c9c2573dd79e4a6c4d25785a89042 ./ipfire-3.x/dhcp/patches/dhcp-4.2.3-dhclient-decline-onetry.patch 21 cbf0d0f9b4b4a953c3f20eb063e3fdd2 ./ipfire-3.x/dhcp/patches/dhcp-4.2.3-P2-log_perror.patch 22 97d2569f24acc78ad792118e512aa226 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-64_bit_lease_parse.patch 23 2659e6e3862415c48741cda58ecc019d ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-dhclient-options.patch 24 f6c3bdd6fcc50c1b96158a01adb5bcc5 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-failOverPeer.patch 25 ea9ceeacc8229bd77e5a221c73abb90a ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-getifaddrs.patch 26 deeb3c446d6441f13e54bf735dd55b49 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-improved-xid.patch 27 cd0f41a27763b93c8dcd251b8ec12658 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-P1-interval.patch 28 d5f6c9a8b114fe12a82ddea86ae18bcd ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-P1-remove-dst.patch 29 d5af79a54fb698ba3160160ef865dbc3 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-P2-conflex-do-forward-updates.patch 30 9f093a90bb90e4b45f84ff5442605816 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch 31 16a40aaa9c10fd6dafc5f57c565f835a ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-paths.patch 32 9f0225ed7d6e10505e40751b031dfcaa ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-send_release.patch 33 a25f1559bb3d0a5a4350923dbefd8181 ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-unicast-bootp.patch 34 c4157436e8abd5be10553b9cbc25a88b ./ipfire-3.x/dhcp/patches/dhcp-4.2.4-UseMulticast.patch 35 f28b1d01f8f8296e38a7e92a3b35c646 ./ipfire-3.x/dhcp/patches/dhcp-4.2.5b1-atf-pkgconfig.patch 36 167ab55855269d0c0869dbcac76db642 ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-lpf-ib.patch 37 44e8d2efa541e0f87c482fdf2c15d9ad ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-manpages.patch 38 8f31b8124e70af6e5cd57a4786523e34 ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-next-server.patch 39 fdf97c7362de5673b85eefd79ca15a5a ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-paranoia.patch 40 e22bfb2ff03054c35bd2dc9ca700daac ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-PPP.patch 41 6d4a27477f68f6d254b41b142dcc175a ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-range6.patch 42 3350f6746e06d073ea6a60fde11834bd ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-remove-bind.patch 43 9ac7c9425ff74195b92f42f4ee28bbb7 ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-rfc3442-classless-static-routes.patch 44 ee1132370c66c686c6d0a72ef6e7859a ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-rfc5970-dhcpv6-options-for-network-boot.patch 45 f2ac47b4d2871738f3f08337977013b1 ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-sendDecline.patch 46 9ae44ae0251f3fcadfbd65227964712c ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-sharedlib.patch 47 a84a4066c29f46f184c350655a94e342 ./ipfire-3.x/dhcp/patches/dhcp-4.2.5-systemtap.patch 48 9fa9f7f8ec96e7eab68b5869d853fc11 ./ipfire-3.x/dhcp/systemd/dhclient4@.service 49 64eb687d06149412a646d07e0dd46e1e ./ipfire-3.x/dhcp/systemd/dhcpd6.service 50 2a27958dee0cad5fe6758978819b8068 ./ipfire-3.x/dhcp/systemd/dhcpd.service 51 572ea60920773a9c67e3f925f171ec07 ./ipfire-3.x/dhcp/systemd/dhcrelay.service 52 3290b24cf52a49ee9989cb44655266d4 ./ipfire-3.x/.git/config 53 a0a7c3fff21f2aea3cfa1d0316dd816c ./ipfire-3.x/.git/description 54 4cf2d64e44205fe628ddd534e1151b58 ./ipfire-3.x/.git/HEAD 55 9cc72dc973e24f9623bd3fe708f60ef5 ./ipfire-3.x/.git/hooks/applypatch-msg.sample 56 579a3c1e12a1e74a98169175fb913012 ./ipfire-3.x/.git/hooks/commit-msg.sample 57 2b7ea5cee3c49ff53d41e00785eb974c ./ipfire-3.x/.git/hooks/post-update.sample 58 a4a7e457b55b5ac2877f7973dbba37e9 ./ipfire-3.x/.git/hooks/pre-applypatch.sample 59 15449d98cfa79704332d057b3f91093c ./ipfire-3.x/.git/hooks/pre-commit.sample 60 7dfe15854212a30f346da5255c1d794b ./ipfire-3.x/.git/hooks/prepare-commit-msg.sample 61 37cd078dc41c68666dd655eb304697b7 ./ipfire-3.x/.git/hooks/pre-push.sample 62 3ff6ba9cf6d8e5332978e057559b5562 ./ipfire-3.x/.git/hooks/pre-rebase.sample 63 f51b02427757e79621b5235d7efdf117 ./ipfire-3.x/.git/hooks/update.sample 64 9f4b2277f50a412e56de6e0306f4afb8 ./ipfire-3.x/.gitignore 65 d5acd12e9b9832e17cc05f21f253011f ./ipfire-3.x/.git/index 66 036208b4a1ab4a235d75c181e685e5a3 ./ipfire-3.x/.git/info/exclude 67 376eb5d008c4cd2e9ab9c1ca0ddb52c0 ./ipfire-3.x/.git/logs/HEAD 68 376eb5d008c4cd2e9ab9c1ca0ddb52c0 ./ipfire-3.x/.git/logs/refs/heads/master 69 376eb5d008c4cd2e9ab9c1ca0ddb52c0 ./ipfire-3.x/.git/logs/refs/remotes/origin/HEAD 70 c2c9ee9d2a6e47102d3b6985de3e8f14 ./ipfire-3.x/.git/objects/pack/pack-1055d3b3caa65442e1171b12cf9d293ab51922f3.idx 71 ab4113811a0c0d018cc4d215c4232bdc ./ipfire-3.x/.git/objects/pack/pack-1055d3b3caa65442e1171b12cf9d293ab51922f3.pack 72 5d1ac344f7a618262bd1d96eab2f38cc ./ipfire-3.x/.git/packed-refs 73 a6eda3b57520bea6bbf82aaa55ab0f2d ./ipfire-3.x/.git/refs/heads/master 74 73a00957034783b7b5c8294c54cd3e12 ./ipfire-3.x/.git/refs/remotes/origin/HEAD 75 a6eda3b57520bea6bbf82aaa55ab0f2d ./ipfire-3.x/.git/shallow 76 d58a063b67e593e8747705fe5c8b1da9 ./ipfire-3.x/.mailmap 1 716c22dd7497d1b40822a74c70c4e2e0 ./dhclient-script.PATH.diff.gz 2 bbdd080496faf8868ec5927f2b322dd9 ./dhcommon-getifaddrs.patch 3 2b5e5b2fa31c2e27e487039d86f83d3f ./dhcp-4.3.5.tar.gz 4 3c2d582bcf2c977b31209232fd8abbe8 ./dhcp_dev.pkg 5 7322ca30f1a0ceb09fd1507c76c1668e ./dhcp.pkg 6 8f16c693d62a9aab9d92d50746c8f80b ./dhcp-remove-bind-tarball.sh 7 9612f32ecb1224da4a2ab04c36f92af1 ./dhcp.SlackBuild 8 913ad6afd019462a13f227b361f8ba42 ./dhcp.SlackBuild.log.gz 9 b24a314f6c369739a186482cc76a0b92 ./dhcp.SlackBuild.orig 10 4ada88a7b59f183cd8a52ab0b1fbc850 ./doinst.sh.gz 11 d99129788515aa0303747198c141dfb4 ./isc-dhcp_4.3.5-3.debian.tar.xz 77 12 bc2a1645a1d85bd372a61eb274b9408a ./post.dhcp 78 13 4fed5a24da160374c56217077f894784 ./slack-desc -
npl/internetserver/dhcp/dhcp.pkg
-
Property
mode
changed from
100755
to100644
-
Property
mode
changed from
-
npl/internetserver/dhcp/dhcp.version
-
Property
mode
changed from
100755
to100644
rf2411e4 rebc5ae5 1 4. 2.51 4.3.5 -
Property
mode
changed from
-
npl/internetserver/dhcp/slack-desc
-
Property
mode
changed from
100755
to100644
-
Property
mode
changed from
Note: See TracChangeset
for help on using the changeset viewer.