IMAGE_FILE = $(IMAGES_DIR)/$(SNAME)-$(VERSION).sfs
+LFS_FILE = $(firstword $(MAKEFILE_LIST))
+
###############################################################################
# Common Macro Definitions
###############################################################################
CORE = yes
EXTRA = no
DEBUG = no
-DEPS = python
URL = http://sourceforge.net/projects/cracklib/
LICENSE = GPLv2
in a dictionary.
endef
+ifeq "$(LFS_FILE)" "python-cracklib"
+ DEPS = python
+ SHORT_DESC = Python-bindings for cracklib.
+ LONG_DESC = A python module to use safe passwords.
+endif
+
###############################################################################
# Top-level Rules
###############################################################################
$(OBJECT): $(objects)
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
- -rm -rf /usr/share/dict
+
cd $(DIR_APP) && \
./configure \
$(CONFIGURE_ARCH) \
--prefix=/usr \
--disable-static \
--with-default-dict=/lib/cracklib/pw_dict
+
+ifeq "$(LFS_FILE)" "python-cracklib"
+ cd $(DIR_APP)/python && make $(PARALLELISMFLAGS)
+ cd $(DIR_APP)/python && make install
+else
cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+ -rm -rf /usr/share/dict
cd $(DIR_APP) && make install
mv -v /usr/lib/libcrack.so.2* /lib
ln -v -sf ../../lib/libcrack.so.2.8.0 /usr/lib/libcrack.so
echo -ne "$(NAME)\n$(SNAME)\n" >> /usr/share/dict/cracklib-extra-words
create-cracklib-dict /usr/share/dict/cracklib-words \
/usr/share/dict/cracklib-extra-words
+endif
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)
EXTRA = no
DEBUG = no
-DEPS = cracklib
+DEPS = #cracklib
OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
CORE = yes
EXTRA = no
DEBUG = no
-DEPS = $(EXTRA_DEPS)
+DEPS =
URL = ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/
LICENSE = GPLv2+
format, plus programs for managing user and group accounts.
endef
-ifneq "$(STAGE)" "base"
- CONFIGURE_ARGS = --with-libpam
- EXTRA_DEPS = pam
-else
- CONFIGURE_ARGS = --without-libpam
-endif
-
###############################################################################
# Top-level Rules
###############################################################################
cd $(DIR_APP) && \
./configure \
$(CONFIGURE_ARCH) \
+ --prefix=/usr \
--sysconfdir=/etc \
+ --enable-shadowgrp \
--with-sha-crypt \
--without-selinux \
--without-libcrack \
- $(CONFIGURE_ARGS) \
+ --without-libpam \
--disable-static
- cd $(DIR_APP) && sed -i 's/groups$$(EXEEXT) //' src/Makefile
- cd $(DIR_APP) && find man -name Makefile -exec sed -i 's/groups\.1 / /' {} \;
+ # Do not build these files:
+ cd $(DIR_APP) && \
+ for i in chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
+ logoutd nologin passwd su; do \
+ sed -i "s/$$i\$$(EXEEXT)//" src/Makefile; \
+ find man -name Makefile -exec sed -i "s/$$i\.1/ /" {} \;; \
+ done
+
+ # Do not install korean and zh man pages
cd $(DIR_APP) && sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile
cd $(DIR_APP) && make $(PARALLELISMFLAGS)
cd $(DIR_APP) && make install
- mv -v /usr/bin/passwd /bin
-
-ifeq "$(STAGE)" "base"
- touch /etc/shadow
- chmod 600 /etc/shadow
- pwconv
-else
- rm -vf /etc/login.access* /etc/limits*
-endif
-
- rm -vf /etc/{passwd,shadow}-
@rm -rf $(DIR_APP)
@$(POSTBUILD)
CORE = yes
EXTRA = no
DEBUG = no
+DEPS = pam
+
+CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
###############################################################################
# Top-level Rules
cd $(DIR_APP) && \
./configure \
$(CONFIGURE_ARCH) \
+ --bindir=/bin \
+ --sbindir=/sbin \
+ --disable-wall \
--enable-arch \
+ --enable-kill \
+ --enable-login-utils \
--enable-partx \
- --enable-write
+ --enable-write \
+ --with-fsprobe=blkid \
+ --disable-makeinstall-chown
+
cd $(DIR_APP) && make $(PARALLELISMFLAGS)
cd $(DIR_APP) && make install
+ # Build nologin
+ cd $(DIR_APP) && gcc $(CFLAGS) -o nologin $(DIR_SOURCE)/$(PKG_NAME)/nologin.c
+ cd $(DIR_APP) && install -m 755 nologin /sbin
+ install -m 644 $(DIR_SOURCE)/$(PKG_NAME)/nologin.8 /usr/share/man/man8
+
+ # Install mount tmpfs helper
+ install -m 755 $(DIR_SOURCE)/$(PKG_NAME)/mount.tmpfs /sbin
+
+ ln -svf ../../sbin/hwclock /usr/sbin/hwclock
+ ln -svf hwclock /sbin/clock
+ ln -sf ../../bin/kill /usr/bin/kill
+
+ touch /var/log/lastlog
+
+ # Remove deprecated commands
+ rm -rfv /sbin/{fsck,mkfs}.{bfs,minix} \
+ /usr/share/man/man*/{fsck,mkfs}.{bfs,minix}*
+
#chmod -v -s /bin/mount
#setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep /bin/mount
#chmod -v -s /bin/umount
ipfire_make attr
ipfire_make libcap2
ipfire_make paxctl
+ ipfire_make shadow
ipfire_make autoconf
ipfire_make automake
ipfire_make bash
+ ipfire_make cracklib
ipfire_make diffutils
ipfire_make eventlog
ipfire_make file
ipfire_make man-db
ipfire_make module-init-tools
ipfire_make mpfr
+ ipfire_make pam
ipfire_make patch
ipfire_make psmisc
- ipfire_make shadow
ipfire_make syslog-ng
ipfire_make sysvinit
ipfire_make tar
ipfire_make perl-xml-parser
ipfire_make intltool
ipfire_make python
+ ipfire_make python-cracklib
ipfire_make python-dbus
ipfire_make python-urlgrabber
ipfire_make python-IPy
ipfire_make libgpg-error
ipfire_make libgcrypt
ipfire_make libksba
- ipfire_make cracklib
- ipfire_make pam
- ipfire_make shadow-pam
ipfire_make slang
ipfire_make newt
ipfire_make cyrus-sasl